excellence
Board Regular
- Joined
- Oct 5, 2005
- Messages
- 155
- Office Version
- 365
- Platform
- MacOS
I have a 2 page spreadsheet that I would like to warn me, prior to printing to print 1 page as I need to take the printed page and flip it to print page 2
I tried the vba below, but I can't get past the warning to print page 1 as the message keeps coming back.
Perhaps there is a different way but wonder how to edit this to answer no and proceed to the print dialog box so I can choose which page to print, not both.
My guess is to have the cancel=true modified to take me to the print dialog box?
Many thanks
I tried the vba below, but I can't get past the warning to print page 1 as the message keeps coming back.
Perhaps there is a different way but wonder how to edit this to answer no and proceed to the print dialog box so I can choose which page to print, not both.
My guess is to have the cancel=true modified to take me to the print dialog box?
Many thanks
VBA Code:
Private Sub Workbook_BeforePrint(Cancel As Boolean)
Result = MsgBox("PRINT 1 PAGE ANSWER >>> NO", vbYesNo)
If Result = vbNo Then
Cancel = True
End If
End Sub