+ Reply to Thread
Results 1 to 5 of 5

How to use an Array

  1. #1
    Forum Contributor
    Join Date
    10-20-2008
    Location
    Gloucestershire
    Posts
    134

    Question How to use an Array

    I was wondering if anyone knew how i would use an array for this code.

    The array would hold the strings ( "Status",.....)
    The "C" representing columns 1 To 19

    Idealy i would use one line to say for cells 1 to C, Execute the array.


    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    Somehting like this would be my guess.

    Does anyone know the solution.

    Thanx George

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    Perhaps you mean something along the lines of:

    Please Login or Register  to view this content.
    I would happily concede I'm most certainly not the best when it comes to working with Array's so someone else is likely to come up with a better approach than the above.

  3. #3
    Forum Contributor
    Join Date
    10-20-2008
    Location
    Gloucestershire
    Posts
    134
    That is great it works so long as i add an End to the last string which means it stops 1 before the end.


    Please Login or Register  to view this content.
    Maybe it starts at 0 apposed to 1

    George

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    Yes, my bad, I did say I wasn't very good... you can use Option Base to force to start at 1 but instead of having End in your array use the original but with:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    10-20-2008
    Location
    Gloucestershire
    Posts
    134
    Yeah that works fine now, I have only done this a few months so am probably pritty bad.

    Thanx for the help

    George

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1