ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   arrays (https://www.excelbanter.com/excel-programming/326767-arrays.html)

JT[_2_]

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........

Tom Ogilvy

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........




Jim Thomlinson[_3_]

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........



All times are GMT +1. The time now is 02:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com