Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi There,
I've done this before but I have no idea how?? Must be getting old! anyways, Lets say I have 10 worksheets and 5 of them are named test1,test2,test3...... the other five have different names. I would like to cycle through the five sheets with a "for next loop", hoping I could join "test" & x. for x = 1 to 5 vtest="test" & str(x) vtest.range("A1").value= "Oh My God.. It worked" next x I seem to get messed up with the declaring part... I keep getting an error everyway I try. Thanks as usual for your help Craig |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Tab keeps cycling through the same row | Excel Discussion (Misc queries) | |||
Cycling through workbooks | Excel Discussion (Misc queries) | |||
Cycling through the cells in a range | Excel Programming | |||
Cycling through worksheets | Excel Programming | |||
Need UDF help; cycling through various sheets using VBA name property | Excel Programming |