I have the following code which works fine when all of the sheets are not hidden:
However, depending on other factors another macro sometimes hides some of the sheets from 8-43. Then the code doesn't work. How can I still run this macro when some of the sheets are hidden?Sub CurrencyEuro() Dim i As Integer Application.ScreenUpdating = False For i = 8 To 43 Sheets(i).Select Range("A502").Select ActiveWindow.ScrollRow = 498 Next i ...
Preferably I don't want to use the names of the worksheets, because those are dynamic.
Bookmarks