Formatting font colour of entire row (or just A:J) depending on content of two cells in the same row...

Daf-the-Bear

New Member
Joined
Oct 3, 2011
Messages
2
Hi folks,
I'm new to this forum and a relative novice with vba so I hope I'm articulating the problem adequately here... It seems like it should be a simple thing but I've spent hours at this stage trying and failing...

For each row on the worksheet, columns G and H are populated with either "Yes" or "No". At the moment, if either cell contains "No", the whole row's font is red and whichever cell it is (or both) is unlocked for editing. When both cells contain "Yes", font colour is xlAutomatic and cells are locked for editing. This is all fine.

The problem: I want to edit the "No" cells as required, changing to "Yes" from a data validation list and then run a macro to update the entire sheet (when all changes have been made) to format colour of rows and lock "Yes" cells for editing.

I've tried dozens of different approaches to this, If statements, Case statements etc. but as I say, I' a bit of a novice on vba. Any help would be much appreciated...
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,224,544
Messages
6,179,430
Members
452,915
Latest member
hannnahheileen

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