+ Reply to Thread
Results 1 to 2 of 2

Taking array values from a worksheet

  1. #1
    Forum Contributor
    Join Date
    09-03-2008
    Location
    Somerset, England
    MS-Off Ver
    XP, 2003, 2007 - depends on location
    Posts
    185

    Smile Taking array values from a worksheet

    Hi all,

    I am currently working on a project at work where by I have to take a number of values for column A of a worksheet (The number of values changes every time the macro is run) and add them to an array. These values are then used further down the macro to filter another workbook. I understand how to use the values stored in the array and how to go through them 1 by 1, but I do not know how to fill the array in the firsty place!

    Any help greatly appricated.

    Thanks,
    David

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,485
    Are the cells being read from a contigous range. If so then if your code can work with a 2d array this will fill array with range.

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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