Hi need help with RowSelection
Hi M& M
You could try using a toggle button instead of a cmd btn and use the same
procedure that you wrote, and then set the colorindex to 0 to change it back
to 'unhighlighted'. Or put in another cmd btn and use your code but change
the colorindex to 0.
hth
BigPig
"M&M" wrote:
Im sure this is an elementary question but I'd rather ask than to spend two
hours trying to figure it out.
I have the macro below:
Sub ShadingMacro()
Dim i As Integer
i = 2
Do Until IsEmpty(Cells(i, 1))
Cells(i, 1).EntireRow.Interior.ColorIndex = 15
i = i + 2
Loop
End Sub
How do I click that same command button again to undo the highlighted rows??
|