Format range based on changing value in another cell

mkpippin

New Member
Joined
Jan 26, 2012
Messages
21
Hi all, hoping someone can help me out

I am trying to change the formatting of a range of cells (G:BM) to two decimal places if the value in cell D1 changes to "SpecificText"

Another small wrinkle in the code, I'm wanting this to run every time the value in D1 is updated.

This seems like it should be easy, but I'm not the best with VBA. Any help you can provide is greatly appreciated

Thanks!!
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
You don't need VBA. Easily done with conditional formatting.
1. Select G:BM with your mouse
2. Home>Conditional Formatting>New Rule>Use a formula
3. Formula is: $D$1="Specific Text"
4. Choose number format wanted and click OK
 
Upvote 0

Forum statistics

Threads
1,215,109
Messages
6,123,136
Members
449,098
Latest member
Doanvanhieu

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