change cell color..

  • Thread starter Thread starter John 3:16
  • Start date Start date
J

John 3:16

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
 
With (range object).Interior
.ColorIndex = 35
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
End With
 
xlBook.Worksheets(3).Range("A1").interior.color = vbRed

or
.... .color = RGB(255,0,0)

Tim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top