J
JMay
Private Sub Workbook_BeforePrint(Cancel As Boolean)
Selection.Font.ColorIndex = 2
ActiveSheet.PrintPreview
Selection.Font.ColorIndex = 1
End Sub
When I select certain cells then click on the Print-Preview Icon
The selected cells are in affect hidden;
I don't want to actually Print so I click on Close (Print-Preview Screen).
It closes, but it also print-out my sheet (which I don't want it to do)
grrrrrrr..
What's missing from my code?
TIA..
Selection.Font.ColorIndex = 2
ActiveSheet.PrintPreview
Selection.Font.ColorIndex = 1
End Sub
When I select certain cells then click on the Print-Preview Icon
The selected cells are in affect hidden;
I don't want to actually Print so I click on Close (Print-Preview Screen).
It closes, but it also print-out my sheet (which I don't want it to do)
grrrrrrr..
What's missing from my code?
TIA..