Sub CopyData()
Dim Rng As Range
For Each Rng In Range("A1", "A10")
If Rng.Interior.ColorIndex = 36 Then
Rng.Copy
Rng.Offset(0, 2).PasteSpecial Paste:=xlPasteValues
End If
Next Rng
End Sub
You will need to change the copy destination to fit your needs.
for each c in selection
if c.interior.colorindex=36 then c.formula = c.value
next c
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.