How do I free variables? or Set them to Nothing?
Thanks,
Ryan
Printable View
How do I free variables? or Set them to Nothing?
Thanks,
Ryan
variablename = ""
Doesn't that just set the variable to an empty string, not set it to nothing?
Well then what are you looking for. "" Is nothing, and empty.
Do you mean Free up the Memory allocated to Variables?
You Can't do It Directly unless you're using objects in which case youThe Equivilent is to Declare your variables Inside a funtion, in which case they are declared at the start ogf the Function Call and Freed up when the Function finishes.Code:Set objMyObject = Nothing