R
Ricky M. Medley
I want to call an object by its codename with a variable, rather than by the
object group the variable name
It would take way too much time and typing to explain why I want to do it
this way....But the main one is; I want to be able to pull up the right
sheet no matter what the user renames the sheet to. And yes...I do want to
allow the user to do this.
for example...
for i = 1 to 10
sheetname = "sheet" & i
thisworkbook.sheetname.blah.blah
<do this>
next i
of course, this method will not work...but has anybody a way to accomplish
the same task, but in a different strategy?
Much appreciated
ricky
object group the variable name
It would take way too much time and typing to explain why I want to do it
this way....But the main one is; I want to be able to pull up the right
sheet no matter what the user renames the sheet to. And yes...I do want to
allow the user to do this.
for example...
for i = 1 to 10
sheetname = "sheet" & i
thisworkbook.sheetname.blah.blah
<do this>
next i
of course, this method will not work...but has anybody a way to accomplish
the same task, but in a different strategy?
Much appreciated
ricky