Disable Printing or Saving/Save As/Ctrl+S when background colors are detected

exission

New Member
Joined
Apr 3, 2019
Messages
2
Hello,

Here is my situation:
I have small sheet using conditional formatting to automatically fill the background of empty cells in a row if a value is entered for other cells in the same row. This is a request form type of spreadsheet and we want to basically force our employees to fill all the required fields in a row before sending the request form.
Here is what i think could work for us:
Basically I want to prevent the spreadsheet from being saved or printed(in case our employees say eff it and print a PDF and send that instead) if VB detects there is any background color at all in any of the cells in the spreadsheet while at the same time preventing users from applying a background color themselves thus triggering the VB code. Could any of you excel wizards help me out? Thanks a lot fellas.:p
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

exission

New Member
Joined
Apr 3, 2019
Messages
2
PLEASE IGNORE THIS THREAD. I found it is nearly impossible to prevent conditional formatting from getting all messed up if users decide to copy and paste into conditional formatting cells thus it will not always apply.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,193
Messages
5,768,774
Members
425,492
Latest member
blueexcel123

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
Top