Hello everyone,
I try and not ask too many questions here because I can usually find answers specifically for or close enough to modify for my needs.
However, I am stumped on this one.
I have a workbook that I work off of weekly.
I have a Main Page and then tabs for each state.
Around 30 tabs total.
I have worked out the macros to change the row colors based on the date.
But, I cannot get it to loop through all of the worksheets.
I have tried several ways without luck.
I can go to each page and run the macro and it works, but just does not loop.
There are different codes that I run that loops with any trouble.
I have tried to incorporate this particular code into them to try and get it to work.
It will successfully run them and leave this out.
Any help will be greatly appreciated.
This works if ran individually on each tab.
I try and not ask too many questions here because I can usually find answers specifically for or close enough to modify for my needs.
However, I am stumped on this one.
I have a workbook that I work off of weekly.
I have a Main Page and then tabs for each state.
Around 30 tabs total.
I have worked out the macros to change the row colors based on the date.
But, I cannot get it to loop through all of the worksheets.
I have tried several ways without luck.
I can go to each page and run the macro and it works, but just does not loop.
There are different codes that I run that loops with any trouble.
I have tried to incorporate this particular code into them to try and get it to work.
It will successfully run them and leave this out.
Any help will be greatly appreciated.
HTML:
Sub GetLate2()
Dim Late As Range
For Each ws In WorksheetsIf ws.Name <> "All Open Sales Orders" Then
Set Late = Range("l2:l500")
For Each Cell In Late
Select Case Cell.Value
Case Is = "1"
Cell.EntireRow.Font.Color = -16776961
Case Else
Cell.EntireRow.Interior.ColorIndex = xlNone
End Select
Next
End If
Next ws
End Sub
This works if ran individually on each tab.
Last edited: