Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing color of Row in Excel from VBA 1

Status
Not open for further replies.

SBendBuckeye

Programmer
May 22, 2002
2,166
US
I have an Excel sheet I am validating using a VBA routine. I am working my way down a specific column. If my routine makes a change during the validation I would like to change the background color of that row to make it easy for the user to spot. How is the best way to do this?

Thanks in advance and have a great day!

 
The following works for the currently selected cell:

activecell.EntireRow.Interior.Color=vbred

You can modify if you are using a row counter, e.g.

Rows(iRow).Interior.Color=vbred

Rob
[flowerface]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top