FilePrint Intercept 2010 - is it obsolete?

J

Janine

Hi,

Is Ctrl P obsolete in 2010 as it is the old FilePrint screen that was
intercepted? Ctrl P moves to Print and Preview screen (now one dialogue)
(same as Ctrl F2).

Sub FilePrint() intercepts old vba Print Screen - Is Ctrl P therefore
obsolete in 2010 because FilePrint screen is for previous versions?

All one can do in Print and Print Preview is press PRINT button there is no
OK button.

So how does one automate the PRINT button execution for old FilePrint()
intercept macros when using Ctrl P to print?

'ActiveDocument.PrintOut Background:=False

Can someone please comment. Thank you.

Sub FilePrint()
' Does not intercept
' Hide no entries

' print
Dialogs(wdDialogFilePrint).Show *Brings up old Print Screen for
2007 2003 etc
'Dialogs(wdDialogFilePrint).Execute Just Prints


End Sub


Sub FilePrintDefault() quickprint (prints immediately)

ActiveDocument.PrintOut Background:=False

End Sub
 
J

Jay Freedman

You got it backwards. Ctrl+P is still valid, but it no longer calls
FilePrint. Instead, it calls a new command called
PrintPreviewAndPrint. If you rename your macro to that name, Ctrl+P
will run it.

The FilePrint command, built-in or macro, seems to be obsolete. I
haven't found any way to intercept the Print button in the Print and
Preview screen. Although using the Ctrl+Alt+NumPadPlus shortcut (the
ToolsCustomizeKeyboardShortcut command) appears to show the Print
button calling the FilePrint command, a macro named FilePrint won't
intercept the button click.

The FilePrintDefault macro still intercepts the Quick Print button
that can be added to the Quick Access Toolbar.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 
J

Janine

Thank you Jay, they were two of your macros I was playing with (as you would
recognise) for CCs.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top