Thought it about time I tidied up my coding. I know you can use:
To unload the variables at the end of a sub to free up ram & virtual memory, make tider code & speed the rest of the program up. Fine.Code:Dim WrdApp as Word.application Dim StrCaption as string 'some code here Set WrdApp = Nothing Set StrCaption = nothing
Now, how the @#{>/~!!!! do you unload an integer??? I've tried:
I just can't get rid of them! (i above is an integer variable by the way). Thanks!Code:Set i = nothing i = nothing unload i 'which I should've guessed wouldn't work.![]()




Reply With Quote