Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub deleteColoredRows()
Const LtGray = 15 Const DkGray = 16 Range("A1").EntireRow.Select Do While ActiveCell.Value < "" ActiveCell.Offset(1, 0).EntireRow.Select Selection.Interior.ColorIndex = LtGray Or DkGray EntireRow.Delete Loop End Sub The loop works, the only thing wrong is the delete line. If the row is either shade of gray I want it to delete. what is the correct syntax for the delete line? many thanks, |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Delete syntax problem | Excel Worksheet Functions | |||
Macro to delete sheets and saves remaining file does not properly delete module | Excel Programming | |||
Delete Row syntax conundrum | Excel Discussion (Misc queries) | |||
Delete Row syntax conundrum | New Users to Excel | |||
Delete every 3rd row, then delete rows 2-7, move info f/every 2nd row up one to the end and delete the row below | Excel Programming |