I know its possible to see a list of variables in the locals window...but can I access that list in VBA?
What I want to do is have a class that goes through the list of variables, and sets all my created objects to nothing. I consistently name my objects oName so if I can setup something like the code below that would work for me. I need help with the text in blue...
What I want to do is have a class that goes through the list of variables, and sets all my created objects to nothing. I consistently name my objects oName so if I can setup something like the code below that would work for me. I need help with the text in blue...
Code:
dim var as object
for each var in [COLOR=royalblue][collection of variables][/COLOR]
if [COLOR=royalblue][variable name][/COLOR] like "o*" then
set var = nothing
end if
next