![]() |
change cell color..
Hi,
How do I change the color in a cell. something like.... after this... xlBook.Worksheets(3).Range("A1") = Date() i want to do something like this.... xlBook.Worksheets(3).Range("A1").forecolor = Red thanks in advance, bob mcclellan |
change cell color..
With (range object).Interior .ColorIndex = 35 .Pattern = xlSolid .PatternColorIndex = xlAutomatic End With "John 3:16" wrote: Hi, How do I change the color in a cell. something like.... after this... xlBook.Worksheets(3).Range("A1") = Date() i want to do something like this.... xlBook.Worksheets(3).Range("A1").forecolor = Red thanks in advance, bob mcclellan |
change cell color..
xlBook.Worksheets(3).Range("A1").interior.color = vbRed
or .... .color = RGB(255,0,0) Tim -- Tim Williams Palo Alto, CA "John 3:16" wrote in message ... Hi, How do I change the color in a cell. something like.... after this... xlBook.Worksheets(3).Range("A1") = Date() i want to do something like this.... xlBook.Worksheets(3).Range("A1").forecolor = Red thanks in advance, bob mcclellan |
change cell color..
Great !
thanks guys... I really appreciate it. bob mcclellan "John 3:16" wrote in message ... Hi, How do I change the color in a cell. something like.... after this... xlBook.Worksheets(3).Range("A1") = Date() i want to do something like this.... xlBook.Worksheets(3).Range("A1").forecolor = Red thanks in advance, bob mcclellan |
All times are GMT +1. The time now is 12:12 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com