Clear/Delete an Array

R

Raul

I populate an array in my code and after I'm through with
it I'd like to delete the array to free up some resources.
What is the proper procedure for clearing/deleting an
array in VBA?

Thanks,
Raul
 
T

Tushar Mehta

If you search XL 97 VBE help for 'clear' (w/o the quotes), one of the
options is 'clearing arrays' (w/o the quotes). If you search a more
recent version of the software (I tried 2003), It seems impossible to
find the Erase function, which is what you need. Sad commentary on the
state of the new help, eh?

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Multi-disciplinary business expertise
+ Technology skills
= Optimal solution to your business problem
Recipient Microsoft MVP award 2000-2004
 
R

Raul

Tushar,
"Erase array" was the key. I had been searching
for "clear array" and "delete array" in the MSDN library
to no avail. The following link was one the results when
I used "erase array"; it provided what I needed.

http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/script56/html/vsstmerase.asp

Thanks again,
Raul
 
R

Raul

Tushar,
"Erase array" was the key. I had been searching
for "clear array" and "delete array" in the MSDN library
to no avail. The following link was one the results when
I used "erase array"; it provided what I needed.

http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/script56/html/vsstmerase.asp

Thanks again,
Raul
 
T

Tushar Mehta

Why do you think I spelled 'Erase' with a capital letter? <grin>
Searching XL VBE help for 'erase' will also lead to the erase statement.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Multi-disciplinary business expertise
+ Technology skills
= Optimal solution to your business problem
Recipient Microsoft MVP award 2000-2004
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top