#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 96
Default arrays

I write data into an array. later on in the macro, I
write the array to a spreadsheet.

At this point, I want to clear the array. Is there an
easy way to clear an array after you are done with it?

Thanks for the help........
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default arrays

Erase MyArray

the behavior would depend on how you declared it. See vba help for details

--
Regards,
Tom Ogilvy

"JT" wrote in message
...
I write data into an array. later on in the macro, I
write the array to a spreadsheet.

At this point, I want to clear the array. Is there an
easy way to clear an array after you are done with it?

Thanks for the help........



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default arrays

Redim without the key word preserve wipes out the contents of an array... If
Tom's doesn't work for you. Depends how you created the array once again.

HTH

"JT" wrote:

I write data into an array. later on in the macro, I
write the array to a spreadsheet.

At this point, I want to clear the array. Is there an
easy way to clear an array after you are done with it?

Thanks for the help........

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
Regarding the Arrays Raj Excel Discussion (Misc queries) 1 December 10th 08 02:26 PM
Need help with arrays (I think) rbhedal Excel Worksheet Functions 3 October 19th 05 07:24 AM
3D Arrays DB Excel Worksheet Functions 2 October 10th 05 03:50 PM
VBA arrays hokiebird Excel Programming 3 November 11th 04 10:38 AM
Arrays Kenny Excel Programming 5 August 26th 04 09:47 AM


All times are GMT +1. The time now is 01:06 PM.

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

About Us

"It's about Microsoft Excel"