PC Review Forums Newsgroups Microsoft Excel Microsoft Excel Programming Clear/Delete an Array

Reply

Clear/Delete an Array

 
Thread Tools Rate Thread
Old 13-05-2004, 09:22 PM   #1
Raul
Guest
 
Posts: n/a
Default Clear/Delete an Array


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
  Reply With Quote
Old 13-05-2004, 09:40 PM   #2
Tushar Mehta
Guest
 
Posts: n/a
Default Re: Clear/Delete an Array

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

In article <ca6601c4391f$b1268e80$a401280a@phx.gbl>,
anonymous@discussions.microsoft.com says...
> 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
>

  Reply With Quote
Old 13-05-2004, 10:11 PM   #3
Raul
Guest
 
Posts: n/a
Default Re: Clear/Delete an Array

I'll try to track down a version of Excel 97.

Thanks,
Raul
>-----Original Message-----
>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
>
>In article <ca6601c4391f$b1268e80$a401280a@phx.gbl>,
>anonymous@discussions.microsoft.com says...
>> 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
>>

>.
>

  Reply With Quote
Old 13-05-2004, 10:25 PM   #4
Raul
Guest
 
Posts: n/a
Default Re: Clear/Delete an Array

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

>-----Original Message-----
>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
>
>In article <ca6601c4391f$b1268e80$a401280a@phx.gbl>,
>anonymous@discussions.microsoft.com says...
>> 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
>>

>.
>

  Reply With Quote
Old 13-05-2004, 10:25 PM   #5
Raul
Guest
 
Posts: n/a
Default Re: Clear/Delete an Array

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

>-----Original Message-----
>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
>
>In article <ca6601c4391f$b1268e80$a401280a@phx.gbl>,
>anonymous@discussions.microsoft.com says...
>> 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
>>

>.
>

  Reply With Quote
Old 13-05-2004, 11:12 PM   #6
Tushar Mehta
Guest
 
Posts: n/a
Default Re: Clear/Delete an Array

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

In article <ce2d01c43928$7b83d950$a301280a@phx.gbl>,
anonymous@discussions.microsoft.com says...
> 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
>
> >-----Original Message-----
> >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
> >
> >In article <ca6601c4391f$b1268e80$a401280a@phx.gbl>,
> >anonymous@discussions.microsoft.com says...
> >> 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
> >>

> >.
> >

>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off