billandrew
Well-known Member
- Joined
- Mar 9, 2014
- Messages
- 743
Good morning all
How would I apply the below code to Multiple worksheets in workbook. TY
Sub formatif()
Application.ScreenUpdating = False
lr = Cells(Rows.Count, 1).End(xlUp).Row
For w = 2 To lr
If Cells(w, 5).Value = "Up" And Cells(w, 8).Value = "No" Then
Cells(w, 1).Resize(1, 8).Interior.Color = rgbLemonChiffon
Cells(w, 1).Resize(1, 8).Font.Bold = True
Cells(w, 1).Resize(1, 8).Font.Color = rgbDarkRed
End If
Next w
End Sub
How would I apply the below code to Multiple worksheets in workbook. TY
Sub formatif()
Application.ScreenUpdating = False
lr = Cells(Rows.Count, 1).End(xlUp).Row
For w = 2 To lr
If Cells(w, 5).Value = "Up" And Cells(w, 8).Value = "No" Then
Cells(w, 1).Resize(1, 8).Interior.Color = rgbLemonChiffon
Cells(w, 1).Resize(1, 8).Font.Bold = True
Cells(w, 1).Resize(1, 8).Font.Color = rgbDarkRed
End If
Next w
End Sub