#941 ·
Nicholas King said:Sub Macro1()
BrojListova = Application.Sheets.Count
For i = 1 To BrojListova
Sheets(i).Select
....
Next i
End Sub
So, that’s how you set up a loop to run a macro across all sheets.
What I’m looking for is how to make the macro start from whichever sheet is currently active and then proceed forward from there. For example:
Suppose we have: sheet1, sheet2, sheet3, sheet4
If I'm working on sheet3 and trigger the macro, I want it to run for sheet3, sheet4 (and sheet5 if it exists), but absolutely skip sheet1 and sheet2.