PDA

View Full Version : Looping through dim'ed objects - can it be done?



werafa
01-13-2013, 05:45 PM
hi all,

Do objects declared inside a subroutine form some sort of collection that can be looped through, or must they be referenced manually?

my thought is to make a "with each" loop to set each object variable back to nothing when exiting a sub - but I don't know the right syntax to search for help under.

Is this possible?
is it wise?

Thanks

JP2112
01-13-2013, 06:33 PM
I'm afraid not -- my assumption is that since variables are created by the developer at design time, then the developer can do that at design time as well.

werafa
01-13-2013, 07:16 PM
I figured something like this - but thanks for the reply