![]() |
Application-defined or Object-defined-error when changing color in
I have tried the following different approaches to chaning the background
color of a cell in an Excell 2007 VBA module and have gotten Application-defined or Object-defined-error each time. I can display the color value I just can't seem to be able to change it. Sheet1.Cells(1, 2).Interior.Color = RGB(126, 255, 126) Worksheets("sheet1").Cells("A1").Interior.ColorInd ex = 3 ActiveSheet.Cells(Cell).Interior.ColorIndex = 255 Range("A1").Cells.Interior.ColorIndex = 1 Any help is welcomed. Thank you in advance for your help. |
Application-defined or Object-defined-error when changing color in
hi
try this... sheets("sheet1").Range("A1").Interior.ColorIndex = 3 regards FSt1 "BCP" wrote: I have tried the following different approaches to chaning the background color of a cell in an Excell 2007 VBA module and have gotten Application-defined or Object-defined-error each time. I can display the color value I just can't seem to be able to change it. Sheet1.Cells(1, 2).Interior.Color = RGB(126, 255, 126) Worksheets("sheet1").Cells("A1").Interior.ColorInd ex = 3 ActiveSheet.Cells(Cell).Interior.ColorIndex = 255 Range("A1").Cells.Interior.ColorIndex = 1 Any help is welcomed. Thank you in advance for your help. |
All times are GMT +1. The time now is 04:39 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com