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.:nya:
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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