Aug 03 2017 01:05 PM
Is there a way I can shade a cell, but keep that cell from being shaded when I print the sheet? For example, I want someone to enter data only in the cells I've shaded yellow, but I want the finished print to not have yellow, shaded cells.
Aug 03 2017 07:18 PM
Sep 15 2017 06:29 AM
Thank you Logaraj for the helpful suggestion! This is a fantastic work-around. But unless there is another solution, I presume that I can't BOTH hide the one shaded color but otherwise print my sheet in color.
Sep 15 2017 06:43 AM
Hi Joel,
I guess in general that's possible using VBA script if in Workbook_BeforePrint event remove the color from the range and in Worbook_AfterPrint return the color back.
Somethig like that, but this is just an idea.
Dec 01 2017 11:52 AM
Joel, try using conditional formatting (Home, Styles, Conditional Formatting). Select the cells you want to be highlighted yellow and click Conditional Formatting, New Rule. Under Rule Type select "Format only cells that contain" and choose Cell Value (1st drop down), equal to (2nd drop down), and type 0 in the 3rd box. Then click Format and under the Fill Tab choose the color you want the empty cells to be highlighted (in your case, yellow). Click OK and OK again in the initial rule window. This allows you to highlight cells that don't have information and send a digital file to be filled out. Once the person fills in the required cells, the yellow highlight is removed and can be printed. Good luck!
Jan 23 2020 09:16 AM
I've been looking for a solution to this issue forever so thank you for this info! Follow up question... what about a cell where the value that needs to be entered is $0.00? It seems if that's the case, the cell just remains highlighted no matter what. Please help if you can. Thank you!
Jan 23 2020 06:04 PM
Apr 20 2020 04:33 PM
@Amber-Lee Dood... This has been sooo helpful. Thank you. Now, considering I am using this for a field form, there are fields that are shaded until filled in; however, I will have many fields that do not get filled in. Is there a way to create a conditional format for fields that are not filled in (e.g., won't change the field from shaded to blank), but I still want all shading to go away upon printing/saving.
It would be acceptable if the shading did not go away when saved as an xlsm extension, but when later saved to pdf. Is that possible?
So happy for solutions. Thanks.
Apr 19 2021 12:47 AM
@Pledesma012 You could use Conditional Formatting to accomplish that.
1. click on New Rule
2. Rule Type Format only cells that contain
3. Format only cells with set to Specific Text and use N/A
4. Click on Format, Then Font Tab and set color to White
OR
1. click on New Rule
2. Rule Type Use a formula to determine which cells to format
3. Enter formula =EXACT( "NA", A1 ) or =EXACT( "N/A", A1 )
4. Click on Format, Then Font Tab and set color to White
Nov 10 2022 06:50 PM
This is so helpful, thanks so much!