- Local time
- Today, 13:51
- Joined
- Feb 19, 2013
- Messages
- 17,157
so the macro uses interior.themecolor - why don't you try that instead of .backcolor?
Edit: in the code you provided, to shade the weekends you used
which is another way (.Interior.ColorIndex) - you appear to have commented out the line that uses this
Edit: in the code you provided, to shade the weekends you used
Code:
'shade in the weekends
For Each rng In wsNew.Range("D3:AH3")
With rng
If rng.Value = "Saturday" Then
wsNew.Columns(.Column).Interior.ColorIndex = 16
ElseIf rng.Value = "Sunday" Then
wsNew.Columns(.Column).Interior.ColorIndex = 16
End If
End With
Next
which is another way (.Interior.ColorIndex) - you appear to have commented out the line that uses this
Last edited: