lock conditional formatting?

jlam

New Member
Joined
Jul 22, 2011
Messages
3
I am helping a client with their spreadsheet of product deadlines, etc. They have asked that, if a deadline is a week away or less, that the entire row be highlighted in a certain color. I have used conditional formatting to do this:

=IF(AND(NOT(ISBLANK($O181))), $O181<=TODAY()+7)

this is code from row O. The code from row P, would have the same formatting, but with $P181... etc. instead of $O181. (The '$' sign insures that the entire row gets formatted.

However, if the client copies and/or cuts a date to another row, the formatting goes with it. Can I lock the formatting so only the values would be moved?
Thanks,
jlam
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
To do it yourself you would use Paste Special.Values... easy!

You could just ask him to do that but I don't think you can default the paste function to do that as standard. If the copy/paste requirement was regular and predictable you could create a macro to paste special and put it in a command button.
 
Upvote 0
Thanks Grizle,

I don't think I want to get into a macro for it. Unfortunately, when I cut the cell, and go to Paste, the Paste Special option is greyed out.

I think I have to tell them to only use manual entery and deletion.

Cheers,
jlam
 
Upvote 0
Addendum:
Actually if the user just highlights the cell, it can be copied and Paste->Special-> Values without overwriting the conditional formatting.

Unfortunately, adding conditional formatting instructions with 5 rules in 180 rows increased the size of the file a megabyte to 12 meg total.

Cheers,
Jeff
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,331
Members
452,907
Latest member
Roland Deschain

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