Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
which sheet a loop is valid for-how do you know?
How do I know which sheet the loop refers to / is valid for? According to my
logic it should be previous sheet, but it seems it is the other sheet (start here)? Not logical as I select the previous sheet just before the loop starts. Sheets("start here!").Activate ActiveSheet.Previous.Select x = 2 Do While Cells(x, 2).Value < "" Cells(x, 9) = Application.VLookup(Cells(x, 8), Worksheets("Prognos").Range("A1:B50000"), 2, False) x = x + 1 Loop End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
what are the rules for a valid sheet name in excel | Excel Discussion (Misc queries) | |||
2 questions: if-else & sheet loop | Excel Programming | |||
Ignoring Sheet in For Each Loop | Excel Programming | |||
Another loop & sheet question | Excel Programming | |||
Excluding sheet in loop | Excel Programming |