Livin404
Well-known Member
- Joined
- Jan 7, 2019
- Messages
- 743
- Office Version
- 365
- 2019
- Platform
- Windows
Greetings,
I have this code and I know I'm fairly close, can someone please drag me across the finish.
My worksheet "Schedule" Which begins on Row 2 and stretches out to Column G. Ideally I would want my first color Row to begin on Row 3 and go down to the last row of data that is in Column A.
I thought it may work, but I'm off slighly I think.
The color should be a light blue.
Thank you very much indeed.
I have this code and I know I'm fairly close, can someone please drag me across the finish.
My worksheet "Schedule" Which begins on Row 2 and stretches out to Column G. Ideally I would want my first color Row to begin on Row 3 and go down to the last row of data that is in Column A.
I thought it may work, but I'm off slighly I think.
VBA Code:
Sub ALT_Rows()
Dim i, count As Long
i = 2
count = Sheets("Schedule1").Cells(Rows.count, "A").End(xlUp).Row
Do While i <= count
Range(Cells(, i, 1), Cells(i, 6)).Interior.Color = RGB(197, 217, 241)
i = i + 1
Range(Cells(, i, 1), Cells(i, 6)).Interior.Color = RGB(197, 217, 241)
i = i + 1
Loop
End Sub
The color should be a light blue.
Thank you very much indeed.