+ Reply to Thread
Results 1 to 2 of 2

Array Data Not Persistent

  1. #1
    Edd
    Guest

    Array Data Not Persistent

    Hi:

    I have some information on an Excel spreadsheet that I successfully copy to
    an Public Array. I use another procedure to extract this same data from the
    Public Array but there is no data. How can I maintain data in the array. I've
    used the Static keyword but still no luck. What am I missing here. Help
    please!

    Thanks,

    Ed.

  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
    Hello Edd,

    There are 3 points that could be the cause of the problem. First, the Array must be delared Public in the delclarations section of Standard VBA Module to be accessable to the rest of the program. Second, the Array data will persist only as long as the VBA code is running. Third, make sure the Array is not being cleared elsewhere in the code.

    Sincerely,
    Leith Ross

+ 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