Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Max Max is offline
external usenet poster
 
Posts: 390
Default resetting Public Arrays in VBASIC

I have an array that I'd like to zero out each time I run the macro in Excel.
What would be a simple way of doing that?
--
Thanks!
Max
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default resetting Public Arrays in VBASIC

Hi

You can use the Erase statement to reset the array in one shot. You'll have
to Dim the array again before using it. (See online help for Erase).

--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"Max" wrote:

I have an array that I'd like to zero out each time I run the macro in Excel.
What would be a simple way of doing that?
--
Thanks!
Max

Reply
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
'spin buttons' & vbasic language Browny Excel Discussion (Misc queries) 0 May 9th 08 04:27 AM
Select item in drop-down list in Vbasic ramza Excel Programming 0 January 13th 06 09:59 AM
Clearing public arrays J Streger Excel Programming 2 November 10th 05 09:38 PM
Formula in VBasic SB Excel Discussion (Misc queries) 3 July 27th 05 09:46 AM
Array of Public Arrays Hari Prasadh Excel Programming 1 January 21st 05 03:42 PM


All times are GMT +1. The time now is 12:10 AM.

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"