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

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
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,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

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