Sub daviskeas()
Dim Cl As Range
For Each Cl In Range("C12:K20")
If Cl.Interior.Color = Range("A1").Interior.Color Then
Cl.Copy Range("A" & Rows.Count).End(xlUp).Offset(1)
End If
Next Cl
End Sub
Cell A1 needs to have the colour fill that you are looking for.
It doesn't do anything when I enter this into VB. Do I need to do something on the spreadsheet to make it run something. Sorry I am very new to this and not sure. Thanks for you help.
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.