Link to home
Start Free TrialLog in
Avatar of Tocogroup
TocogroupFlag for United Kingdom of Great Britain and Northern Ireland

asked on

How do I format the font colour of an Excel cell with the colour of its sheet tab in VBA ?

I have an Excel 2010 application. I want to test the contents of a cell in VBA and if it meets that condition to change the colour of the text to the same colour of the sheet tab.

How do I do this in VBA code ?

Toco
ASKER CERTIFIED SOLUTION
Avatar of [ fanpages ]
[ fanpages ]

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Try this

ActiveCell.Font.ColorIndex = ActiveSheet.Tab.ColorIndex

Open in new window

Avatar of Tocogroup

ASKER

Thanks both for your solutions but I've gone for the first I received.
It works great.
Toco