Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Loop macro error
Hi,
I am trying to write a macro that will loop through my spreadsheet until there is no more data. I want it to start at row 7, then colour the row (or just cells A to AD) to colour 35. I have written the macro below, however am coming up with an error that states there is no Do when trying to run it. Can anyone help? Range("7:7").Select 'Set range to start point Do While ActiveCell.Value < "" With Selection.Interior.ColorIndex = 35 ActiveRange.Offset(6, 0).Select Loop Thanks Kirsty |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Do while loop error.... | Excel Programming | |||
Error message when using the Solver in a VBA macro loop | Excel Programming | |||
Befuddled with For Next Loop ------ Run - Time Error '13' Type Mismatch Error | Excel Programming | |||
loop error | Excel Programming |