Shape color index does not match cell color index
Don't guarantee it will work but try the following:-
shp.Fill.ForeColor.RGB = r.Interior.Color
I was able to get it to work using the following test code so it might point
you in the right direction:-
ActiveSheet.Shapes("Rectangle 1").Select
Selection.ShapeRange.Fill.ForeColor.RGB = Range("A1").Interior.Color
--
Regards,
OssieMac
|