- Local time
- Today, 19:46
- Joined
- Feb 19, 2013
- Messages
- 17,064
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: