+ Reply to Thread
Results 1 to 3 of 3

Assigning/Retrieving arrays of values to/from listobjects

  1. #1
    Registered User
    Join Date
    07-06-2009
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    7

    Unhappy Assigning/Retrieving arrays of values to/from listobjects

    How can I add an array of values to a listobject, preferably in one big chunk? How can I read a chunk of values from a listobject into an array?

    For the latter, I've tried:

    Please Login or Register  to view this content.
    but it just doesn't work.

    Thanks,
    Jarrod
    Last edited by jarrods; 07-08-2009 at 08:19 AM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Assigning/Retrieving arrays of values to/from listobjects

    Hello jarrods,

    You need to make one small change to your code. Remove the Set statement. You're assigning an array of values to your variable, not an object. With this array, the first subscript of each dimension is one, not zero. As for the second part of your question, I have had no success. Nearly all the properties are Read Only. Can't expand a range when it is read only.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    07-06-2009
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Assigning/Retrieving arrays of values to/from listobjects

    Perfect. Thanks!

+ 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