From: Janine on 27 Feb 2010 21:40 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 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
From: Jay Freedman on 27 Feb 2010 22:59 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 FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. On Sun, 28 Feb 2010 13:40:49 +1100, "Janine" <janine(a)ribbonspace.com> wrote: >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 > >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 >
From: Janine on 27 Feb 2010 23:06 Thank you Jay, they were two of your macros I was playing with (as you would recognise) for CCs. "Jay Freedman" <jay.freedman(a)verizon.net> wrote in message news:2mpjo5994520um8j2uif0nl1rnv708qnki(a)4ax.com... > 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 FAQ: http://word.mvps.org > Email cannot be acknowledged; please post all follow-ups to the > newsgroup so all may benefit. > > On Sun, 28 Feb 2010 13:40:49 +1100, "Janine" <janine(a)ribbonspace.com> > wrote: > >>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 >> >>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 >>
|
Pages: 1 Prev: Word Content Controls Restricted Document Fill in forms Next: Try OpenOffice |