How to change the color of a row using VBA

  • Thread starter Thread starter George
  • Start date Start date
G

George

Hi, thanks for the other help, know I need to see if I can
change the color of a hole row using Excel VBA. I've been
trying to work around the code but it gives me an "Object
Required" Error. thanks in advanced
 
Hi

This will color the activecell row

Sub test()
Rows(ActiveCell.Row).Interior.ColorIndex = 3
End Sub
 
Range("A1").Entirerow.Interior.ColorIndex = 3

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

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