LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default Clearing public arrays

I am using several 2 simentional arrays as public arrays so that I can pass
the same array through a set of code regardless of where it comes from. I
notice that if I run a proecure involving these arrays, everything is fnie
the first time around. If I then activate the same procedure again, I find
the arrays still have saved their dimensions from the first run, and when I
redim to set the first dimension, I get an error (since you can't change the
first dimension once the second is declared.

Is there anyway to clear the cache of these public arrays inbetween
procedure runs?

If I hit the stop in VBA, it clears the arrays, but obviously that's a bit
cumbersome. Thanks for any help.

--
*********************
J Streger
MS Office Master 2000 ed.
MS Project White Belt 2003

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clearing cells without clearing formulas marsjune68 Excel Discussion (Misc queries) 2 April 10th 09 07:39 PM
Dim vs. Public Jason Morin Excel Programming 7 January 27th 05 01:13 PM
Array of Public Arrays Hari Prasadh Excel Programming 1 January 21st 05 03:42 PM
public sub Bob Excel Programming 3 December 10th 04 08:49 PM
clearing arrays mike Excel Programming 2 February 25th 04 09:56 PM


All times are GMT +1. The time now is 08:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"