+ Reply to Thread
Results 1 to 2 of 2

Initialize array from cell values in a column...

  1. #1
    Valued Forum Contributor
    Join Date
    03-17-2012
    Location
    Warsaw, Poland
    MS-Off Ver
    2007/2010
    Posts
    555

    Initialize array from cell values in a column...

    ...where certain cells might be hidden. This returns only the first value (instead an array of all values). How do I get around that one?

    Please Login or Register  to view this content.
    Thanks!
    If you think that my answer was helpful, please click on the "Add to this user's Reputation" button.

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Initialize array from cell values in a column...

    Hi,
    I tried your code and it seems to work fine. I can get an array of 1048576 rows x 1 column contain the hidden cells. But, without seeing your workbook, difficult to say if I test in the same conditions...

    do you really need to pass the EntireColumn in the array. Why not only the current region, assuming data starts in row 1

    Please Login or Register  to view this content.
    or by finding the lastrow with a value in your column :

    Please Login or Register  to view this content.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How do I declare and initialize an array?
    By Corey R. in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-23-2009, 05:04 PM
  2. Initialize or Assign Array Values
    By apka in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-11-2008, 07:04 PM
  3. [SOLVED] Userform Initialize & combo box values
    By michaelberrier in forum Excel General
    Replies: 3
    Last Post: 06-27-2006, 11:40 AM
  4. initialize an array to 0
    By kdp145 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-15-2006, 04:25 PM
  5. Initialize an array
    By Kleev in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-01-2005, 02:15 PM

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