bobhc
Excel Ninja
Good evening all
Running this code to colour every other row
When I run this code nothing happens, but I was under the impression that I had set the “ActiveCell.Value” to nothing <> ””
Sub ColorEverySecondRow()
Const Grey = 15
Range("A2").EntireRow.Select
Do While ActiveCell.Value <> ""
Selection.Interior.ColorIndex = Grey
ActiveCell.Offset(2,0).EntireRow.Select
Loop
End Sub
But when I change <>""to<>” “~(a space between “”) the code runs??
………….but Excel hangs at around 9500 is this down to the system or Excel
Running this code to colour every other row
When I run this code nothing happens, but I was under the impression that I had set the “ActiveCell.Value” to nothing <> ””
Sub ColorEverySecondRow()
Const Grey = 15
Range("A2").EntireRow.Select
Do While ActiveCell.Value <> ""
Selection.Interior.ColorIndex = Grey
ActiveCell.Offset(2,0).EntireRow.Select
Loop
End Sub
But when I change <>""to<>” “~(a space between “”) the code runs??
………….but Excel hangs at around 9500 is this down to the system or Excel