ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Can I reset an array to myarray() (https://www.excelbanter.com/excel-programming/292051-re-can-i-reset-array-myarray.html)

Chip Pearson

Can I reset an array to myarray()
 
Dan,

Use the Erase statement. E.g.,

Erase MyArray


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Dan" wrote in message
...
I want to clean out a public array that I have grown

dynamically and start over as if it was the first time into the
code.

ReDim myarray() gives an error message.





All times are GMT +1. The time now is 04:18 PM.

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