Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Creating a "print current page" macro or button
Is there any way I can create a macro which will allow me to print the
current page of a document without having to open the print window, selecting "current page" and then hitting "okay"? (In other words, it would be something that I could do with a single click, just as the toolbar already has a command button that prints the entire document without forcing me to go through the print window.) I'm thinking that there ought to be some way to do it, but everything I have tried doesn't go beyond opening the print window. David |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Creating a "print current page" macro or button
Sub PrintPage()
Application.PrintOut Range:=wdPrintCurrentPage End Sub http://www.gmayor.com/installing_macro.htm -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org David B. Appleton wrote: Is there any way I can create a macro which will allow me to print the current page of a document without having to open the print window, selecting "current page" and then hitting "okay"? (In other words, it would be something that I could do with a single click, just as the toolbar already has a command button that prints the entire document without forcing me to go through the print window.) I'm thinking that there ought to be some way to do it, but everything I have tried doesn't go beyond opening the print window. David |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Creating a "print current page" macro or button
Thank you so much! I just _knew_ there had to be some way to do this.
David "Graham Mayor" wrote: Sub PrintPage() Application.PrintOut Range:=wdPrintCurrentPage End Sub http://www.gmayor.com/installing_macro.htm -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org David B. Appleton wrote: Is there any way I can create a macro which will allow me to print the current page of a document without having to open the print window, selecting "current page" and then hitting "okay"? (In other words, it would be something that I could do with a single click, just as the toolbar already has a command button that prints the entire document without forcing me to go through the print window.) I'm thinking that there ought to be some way to do it, but everything I have tried doesn't go beyond opening the print window. David |
#4
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Creating a "print current page" macro or button
I've now edited the macro with your script, and it works like a charm! Thank
you so very much! You've made my day. David "Graham Mayor" wrote: Sub PrintPage() Application.PrintOut Range:=wdPrintCurrentPage End Sub http://www.gmayor.com/installing_macro.htm -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org David B. Appleton wrote: Is there any way I can create a macro which will allow me to print the current page of a document without having to open the print window, selecting "current page" and then hitting "okay"? (In other words, it would be something that I could do with a single click, just as the toolbar already has a command button that prints the entire document without forcing me to go through the print window.) I'm thinking that there ought to be some way to do it, but everything I have tried doesn't go beyond opening the print window. David |
#5
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Creating a "print current page" macro or button
You are welcome
-- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org David B. Appleton wrote: I've now edited the macro with your script, and it works like a charm! Thank you so very much! You've made my day. David "Graham Mayor" wrote: Sub PrintPage() Application.PrintOut Range:=wdPrintCurrentPage End Sub http://www.gmayor.com/installing_macro.htm -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org David B. Appleton wrote: Is there any way I can create a macro which will allow me to print the current page of a document without having to open the print window, selecting "current page" and then hitting "okay"? (In other words, it would be something that I could do with a single click, just as the toolbar already has a command button that prints the entire document without forcing me to go through the print window.) I'm thinking that there ought to be some way to do it, but everything I have tried doesn't go beyond opening the print window. David |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Print Button Launches "Save As" window | Microsoft Word Help | |||
"Print current page" should have a "+n pages" field. | Microsoft Word Help | |||
"Page Down" key in "Print Preview" No Longer Works | Microsoft Word Help | |||
creating a "word" version of the lotus wordpro "smartmaster" | Microsoft Word Help | |||
Icon in Word for "PRINT CURRENT PAGE" would be most helpful | Microsoft Word Help |