Changing Cell Color with macro
Chris L wrote:
Hi,
Does anyone know how to change the cell color with macro in Excel 97.
The following code only works in Excel 2000
Sheet13.Cells(1,2).Interior.Color = RGB(126, 255, 126) 'Grey
In Excel 97, it gives the following error:
Unable to set the Color property of the Interior class
Regards,
Chris
I don't know if this will help, but I usually just use something like
this . . .
With Sheets("Sheet13")
Range("A2").Interior.Color = RGB(126,255,126)
End With
|