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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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