Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting rows without a fill
I want to delete rows that don't have a fill color. I've
tried ElseIf .Cells(Lrow, "A").Interior.ColorIndex = 0 then .Rows(Lrow).Delete within a loop but it doesn't work, yet when I try the same statement with another fill number, like 40, it does delete those rows. Any help would be appreciated! Glenn |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting rows without a fill
no fill color is xlNone
ElseIf .Cells(Lrow, "A").Interior.ColorIndex = xlNone then .Rows(Lrow).Delete ? xlNone -4142 -- Regards, Tom Ogilvy Glenn wrote in message ... I want to delete rows that don't have a fill color. I've tried ElseIf .Cells(Lrow, "A").Interior.ColorIndex = 0 then .Rows(Lrow).Delete within a loop but it doesn't work, yet when I try the same statement with another fill number, like 40, it does delete those rows. Any help would be appreciated! Glenn |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting rows without a fill
Glenn,
Try .ColorIndex = -4142 John "Glenn" wrote in message ... I want to delete rows that don't have a fill color. I've tried ElseIf .Cells(Lrow, "A").Interior.ColorIndex = 0 then .Rows(Lrow).Delete within a loop but it doesn't work, yet when I try the same statement with another fill number, like 40, it does delete those rows. Any help would be appreciated! Glenn |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting rows without a fill
Thanks, Tom! That did it.
"Tom Ogilvy" wrote in message ... no fill color is xlNone ElseIf .Cells(Lrow, "A").Interior.ColorIndex = xlNone then .Rows(Lrow).Delete ? xlNone -4142 -- Regards, Tom Ogilvy Glenn wrote in message ... I want to delete rows that don't have a fill color. I've tried ElseIf .Cells(Lrow, "A").Interior.ColorIndex = 0 then .Rows(Lrow).Delete within a loop but it doesn't work, yet when I try the same statement with another fill number, like 40, it does delete those rows. Any help would be appreciated! Glenn |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting rows without a fill
Thanks John! That, in addition to 'XLNONE' works too!
"John Wilson" wrote in message ... Glenn, Try .ColorIndex = -4142 John "Glenn" wrote in message ... I want to delete rows that don't have a fill color. I've tried ElseIf .Cells(Lrow, "A").Interior.ColorIndex = 0 then .Rows(Lrow).Delete within a loop but it doesn't work, yet when I try the same statement with another fill number, like 40, it does delete those rows. Any help would be appreciated! Glenn |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro for deleting rows and serialising the remaing rows | Links and Linking in Excel | |||
Macro for deleting rows and serialising the remaing rows | Setting up and Configuration of Excel | |||
Macro for deleting rows and serialising the remaing rows | Excel Worksheet Functions | |||
Help!! I have problem deleting 2500 rows of filtered rows!!!! | Excel Discussion (Misc queries) | |||
deleting hidden rows so i can print only the rows showing?????? | Excel Worksheet Functions |