OleMiss2010
Member
I built a worksheet that has certain cells that need to be filled in. These are identified by having a gray fill. However, I want to print the worksheet without the gray fill to save toner. I have two ideas. Either I do something that ignores the fill color in printing (I have no idea how to do this or if it is possible) or write a macro so that the user clicks a button within the worksheet whenever they are ready to print. My subroutine would look like the following (only I need to fill in one gap):
[pre]
[/pre]
[pre]
Code:
Sub PrintWorksheet()
Cells.Select
With Selection.Interior
.Pattern = xlNone
.TintAndShade = 0
.PatternTintAndShade = 0
End With
ActiveWindow.SelectedSheets.PrintOut Copies:=1
'Here is my issue. I need a line that would undo the previous color change.
'I can do this outside of the macro, but not within the macro.
End Sub