Code to clear cells with duplicated conditional formatting

Ironman

Well-known Member
Joined
Jan 31, 2004
Messages
1,069
Office Version
  1. 365
Platform
  1. Windows
Hi

My workbook contains a number of sheets.

Two of these, "Training Log" and "Exercise Bike", contain conditional formatting and the rows expand almost daily.

Every time I type in a new row of data to either of these sheets, a new and duplicated Conditional Formatting rule is created for the single cell, even though there is an existing CF rule that includes the newly input data in the range.

I'm not inserting a new row, just typing data into the next empty row.

Assuming there's no way of preventing this annoyance manually (if there is I'd be grateful to know how), I'd appreciate some code that will automatically cleanup any duplicated individual cell CF rules in either of these sheets.

Many thanks.
 
Last edited:

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Which version of Excel are you using?
- I am unable to replicate described behaviour :confused:

Suggest you
- delete ALL conditional formatting rules and replace with a new rule applying it to the current active range
- enter data in next row
- the CF range should expand but should not create a new rule
 
Upvote 0
Hi Yongle, many thanks for your help - that worked.
 
Upvote 0

Forum statistics

Threads
1,215,013
Messages
6,122,690
Members
449,092
Latest member
snoom82

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