#1
|
|||
|
|||
Macro to print "Current Page" in Word 2010
Hi,
I feel so dumb because every couple of days I try to figure this out and even after googling it, can't seem to do it. I have a 6 page TO DO list that I only want to print the first, current page on a daily basis. Sorry if I missed it here, but is there simple instructions on how to create a macro to print "Current Page" only in Word 2010? Thanks. |
#2
|
|||
|
|||
7 Views and no help, ha,ha.
Solved. May be easy for you guys, but it wasn't for me.
Thanks. |
#3
|
||||
|
||||
Hi Jshopping,
Some of us live in different time zones to you, and aren't available 24/7. You could try: Code:
Sub PrintOne() ActiveDocument.PrintOut From:="p1s1", To:="p1s1" ActiveDocument.PrintOut wdPrintCurrentPage End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#4
|
|||
|
|||
Thanks Paul. I know, those seven people who viewed the question probably figured it was so easy I should dig. I did, and it was.
Take care. |
#5
|
||||
|
||||
Or maybe they didn't know the answer either and were hoping you might have posted something they could use ...
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#6
|
|||
|
|||
Oh yes, how stupid of me not to think of that. Thanks for the tip.
|
#7
|
|||
|
|||
Hi,
I've tried to input this macro and was unable to use it, or that is, it didn't work for me. I may require a real step by stepper if you don't mind: When I call up the record macro, I name it first off..... do I name it with your beginning line in macro as Sub PrintOne() or does it matter what I name it (personally)..... and then I would proceed to the shortcut key is what I thought I could do and assign a control-alt combination or is this specifically for adding to the ribbon in the way you would add a radio button or a button for any other function??? I may have not input the macro correctly and have followed this same macro from other forums and am still looking for possible work around for this specific desire to print the current page. I work in a law firm and we have gigantic network, so I don't know if this is something that would work out if in the case it is not a macro that is used for networked computers? I have my own personal macros I have set up and use, all the while, by assigning (of course, the open or available key sets that aren't used by the firm's preset macros). I also use the auto text but it isn't as easy because it is limited or that is, when it comes to naming the auto text entries...I can't address the same letters i.e., NOD for Notice of Deposition if I use that combo NOD, I can't use NOH for Notice of Hearing because the "N" seems to be what is used already (?) At any rate, I would appreciate any suggestions or help to the main question herein, regarding the first page print shortcut/macro, if possible and I can provide further details or with more clarity if I haven't explained what the issue is about same. Thanks* |
#8
|
||||
|
||||
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#9
|
|||
|
|||
Thanks Paul
I'll give this a try and get back to you, if you don't mind, w/the anticipated good outcome. It may be next week, however, when I have a little more time, outside of the normal work flow.
Till then... leis |
#10
|
|||
|
|||
I still am questioning the actual input of this macro for printing the current page; do you create the macro exactly (as follows) copied:
Sub PrintOne() ActiveDocument.PrintOut From:="p1s1", To:="p1s1" ActiveDocument.PrintOut wdPrintCurrentPage End Sub And as the thread (you mention) the second line is for the current page whereas the first is for printing the first field. I would like to just have the macro to function in order to (quickly) print the current page. My problem, though, when i created this macro, I assigned it to (for example) Control + Alt + e (and it seemed to be in order and those key combo opened) but when I brought it up.... by hitting Control, Alt E.... it did come up (alright) just as the copy above that i copied from the thread. Then I remembered it was also going to function as a button or to be added to the quick access toolbar, to which, I then made up the button and it copied to the toolbar (ok) but nothing happens when I click on the button and there's definitely nothing in the printer or the spooled copy job or anything from trying this. Sorry if I'm providing a lot of the issue (of my own) without clarity or if it's not clear, I will re-submit, if possible, and maybe explain the steps I'm trying in order to get this procedural (macro) in order.... Thanks (either way) * leis |
#11
|
||||
|
||||
For your purposes, the macro could be reduced to:
Code:
Sub PrintOne() ActiveDocument.PrintOut wdPrintCurrentPage End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Tags |
macros |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Easy Update "Table of Contents" feature in Microsoft Word 2007 VS. Word 2010 | Xarzu | Word | 0 | 09-22-2010 06:54 PM |
"MS Office has not been installed for current user" | webyourstuff | Office | 1 | 07-28-2010 08:49 AM |
Making a Macro "autoopen" | Joshocom | Word | 1 | 03-16-2010 05:03 PM |
"Microsoft Excel Application" missing in the "Component Services" on win08 | sword.fish | Excel | 0 | 02-26-2010 02:09 PM |
Automated "Macro" to delete Tags/Anchors | field3 | Word VBA | 0 | 02-25-2009 02:53 PM |