JohnKauffman
New Member
- Joined
- Nov 1, 2012
- Messages
- 36
I can't seem to get syntax right to select column B when looping through collection of worksheets.
Code:
Sub FormatAcrossSheets()
Dim currentWS As Worksheet
For Each currentWS In Worksheets
currentWS.Columns(2).Select 'fails: error "Select method of Range Class failed"
Selection.Interior.ColorIndex = 17
Next
End Sub