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!

Simple VBA question

Status
Not open for further replies.
Joined
Jan 28, 2003
Messages
149
Location
GB
Hi

Straight to the point - can you use VBA to return the colour index of the background of a cell. So if cell A1 was "painted" red, can you have VBA return 3 (the colour code for red).

Thanks in advance B.M.
 
You mean like :

Selection.Interior.ColorIndex

Glenn.
 
LOL - like, that's exactly what I mean. I had been running down the "ActiveCell" path.

Cheers B.M.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top