Conditional Formatting of a text box.

JoyC

Board Regular
Joined
Aug 28, 2009
Messages
91
I'm wondering if there's a way in which I can change the colour/shade and font colour of a text box in Excel when a particular cell displays specific values.

For instance, if cell "P5" displays "R" I would like text box 1 to display a shade of red with the contents in bold white font. If "P5" displays "A" it needs to be amber with regular black font, if "P5" displays "G" it needs to be green with regular black font.

I'm happy to use VBA, in fact I would say this is the only option.

If you need any further clarity, I'd be happy to elaborate.

Many thanks.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
NB: I should add, after investigating this myself that I am referring to the textbox found on the Autoshapes toolbar and not the textbox used on a userform.
 
Upvote 0

Forum statistics

Threads
1,224,558
Messages
6,179,512
Members
452,921
Latest member
BBQKING

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top