Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all,
I need to be able to delete entire rows that have no shading and keep those that have a specific colouring. Any help would be appreciated. Regards, Vipul |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
don't know how many ros and column you have. The code defines an area
bounded by the last items in Row 1 and Column A. Sub removeshade() LastRow = Cells(Rows.Count, "A").End(xlUp).Row LastCol = Cells(1, Columns.Count).End(xlToLeft).Column Set myrange = Range(Cells(1, 1), Cells(LastRow, LastCol)) For Each cell In myrange If cell.Interior.ColorIndex < xlNone Then cell.EntireRow.Delete Shift:=xlUp End If Next cell End Sub "Vipul Vij" wrote: Hi all, I need to be able to delete entire rows that have no shading and keep those that have a specific colouring. Any help would be appreciated. Regards, Vipul |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can colour of cell shading be fixed to one colour | Excel Discussion (Misc queries) | |||
cell shading depending on which day | Excel Discussion (Misc queries) | |||
Cell shading depending on which day | Excel Discussion (Misc queries) | |||
Formula to highlight an entire row when certain text is present. | Excel Discussion (Misc queries) | |||
Changing row colour if text string present in a cell? | Excel Programming |