Guest User

Untitled

a guest
May 24th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. Sub FilePrint()
  2. 'To intercept File > Print and CTRL-P'
  3.  
  4. MyPrintSub
  5.  
  6. End Sub
  7.  
  8. Sub FilePrintDefault()
  9. 'To intercept the Standard toolbar button'
  10.  
  11. MyPrintSub
  12.  
  13. End Sub
  14.  
  15. Sub MyPrintSub()
  16.  
  17. Dialogs(wdDialogFilePrint).Show
  18. 'Your code here, e.g:'
  19. MsgBox "I am done printing."
  20.  
  21. End Sub
Add Comment
Please, Sign In to add comment