Sub ChangeFillColorFromHex993366ToHexC0C0C0()
Application.FindFormat.Interior.Color = &H993366
Application.ReplaceFormat.Interior.Color = &HC0C0C0
Cells.Replace "", "", SearchFormat:=True, ReplaceFormat:=True
End Sub
I assume you mean by that that those cells are not conditionally formatted. If that is the case, then the code I posted should be able to be placed anywhere inside your existing code without interference. Can you post the code you had trouble with (where you tried to intergrate them) so I can test what you did here?... in this preexisting sheet some cells are already formatted or filled with RED in the cell....
If you mean you plan to fill each cell's interior with the actual color white, I don't think you will like the result... you will lose your grid lines. Are you sure the color in the cells is HEX 993366? If that is not a Hex number, then remove the &H from the following line of code...I am not sure why the code was error-ing out before, but now it seems to be good, however the colors don't seem to be changing in the cells.
So I guess we could go with another approach. To have the code select the whole sheet and then make sure the background fill of every cell in the entire worksheet is just white.
Application.FindFormat.Interior.Color = &H993366