Excel / after print +1
Solved/Closed
Dark1500
-
Feb 2, 2010 at 12:54 AM
rizvisa1 Posts 4479 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Feb 2, 2010 at 07:33 AM
rizvisa1 Posts 4479 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Feb 2, 2010 at 07:33 AM
Related:
- Excel / after print +1
- Gta 1 download - Download - Action and adventure
- Fnaf 1 download pc - Download - Horror
- Excel date format dd.mm.yyyy - Guide
- Print nightmare fix - Guide
- Print 1 11 111 in c ✓ - Programming Forum
1 reply
rizvisa1
Posts
4479
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
767
Feb 2, 2010 at 07:33 AM
Feb 2, 2010 at 07:33 AM
I think you need some thing like this
Private Sub Workbook_BeforePrint(Cancel As Boolean)
Application.EnableEvents = False
' Cancel your actual print request
Cancel = True
'HERE ADD THE CODE FOR PRINTING THRU MACRO
'HERE INCREASE THE PRINT COUNTER BY 1
Application.EnableEvents = True
End Sub
of course when you close the sheet, make sure you save the workbook to store the changed value
Private Sub Workbook_BeforePrint(Cancel As Boolean)
Application.EnableEvents = False
' Cancel your actual print request
Cancel = True
'HERE ADD THE CODE FOR PRINTING THRU MACRO
'HERE INCREASE THE PRINT COUNTER BY 1
Application.EnableEvents = True
End Sub
of course when you close the sheet, make sure you save the workbook to store the changed value