1st:
Range(WhatEver)
is identical to
ActiveSheet.Range(WhatEver)
Worksheets("MySheet").Range(WhatEver)
refers to the Range(WhatEver) on Sheets("MySheet")
I didn't review your code. I just assume it works.
But it only works on the ActiveSheet. You need to tell it what sheet to work on.
Sub CycleSheets()
Dim sh as Worksheet
For Each sh in Worksheets
Update_Row_Colors sh
Next sh
End Sub
Sub Update_Row_Colors(ByVal sh As Worksheet)
'Your code.
' Change all " Range(....)"
' to " sh.Range(....)"
End Sub
Bookmarks