Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub cpyColr()
Dim c As Range lastRw = Worksheets(1).Cells(Rows.Count, 2).End(xlUp).Row For Each c In Worksheets(1).Range("B2:B" & lastRw) If c.FormatConditions.Count 0 Then If c.FormatConditions(1).Interior.ColorIndex = 3 Then lstRw2 = Worksheets(2).Range("A65536").End(xlUp).Row cRng = c.Address Worksheets(1).Range("A" & Range(cRng).Row & ":F" & _ Range(cRng).Row).Copy Worksheets(2).Range("A" & lstRw2 + 1) End If End If Next End Sub "K" wrote: Hi, can anybody please able to tell me the macro that how can i copy rows to another sheet on based on cell colour. Like if i have "Interior.Colorindex = 3" or Red in cell B1,B3 and B7 so how can i copy those colored rows which should be not entire row but from Cell A to Cell F in length to any other sheet. Please anybody can help it will be very helpful.... Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy rows based on cell colour | Excel Programming | |||
Copy rows based on cell content | Excel Discussion (Misc queries) | |||
Copy rows from one sheet to another based on a cell value | Excel Worksheet Functions | |||
Copy rows from one sheet to another based on a cell value | New Users to Excel | |||
copy rows based on cell value | Excel Programming |