Only concern yourself with Object Variables
In your example, if x was declared as a String then it won't work. Just do nothing with these ones. If you have an object variable, which means you declared something like
Code:
Dim myObj as Collection
Then you could/should (?) follow the principal of setting this to nothing once your program is finished with it.
[code]
Set myObj = Nothing
[code]
Note that to test if it is already Nothing, use:
[code]
If myObj is Nothing Then
[code]
With other variables, Stirngs and Variants in particular could be set to the equivalent to nothing. String can be set to "" and variants to "" or Null.
Hope it helps
Appreciate the help, but,
What about arrays, integers, and bytes?