djamieson17
New Member
- Joined
- Nov 13, 2011
- Messages
- 5
Hi All,
I have an array that contains a list of worksheet names. I want to change the activesheet in a loop.
psuedo-code:
array = ("sheet1" "sheet2" "sheet3")
for i = 1 to length of array
change active sheet to array(i)
... rest of macro ...
next j
I've tried a number of (what I thought were) obvious ways, but cannot get it to work.
Thanks,
Dave
I have an array that contains a list of worksheet names. I want to change the activesheet in a loop.
psuedo-code:
array = ("sheet1" "sheet2" "sheet3")
for i = 1 to length of array
change active sheet to array(i)
... rest of macro ...
next j
I've tried a number of (what I thought were) obvious ways, but cannot get it to work.
Thanks,
Dave