Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-18-2011, 08:41 AM
Jshopping Jshopping is offline Macro to print "Current Page" in Word 2010 Windows XP Macro to print "Current Page" in Word 2010 Office 2003
Novice
Macro to print "Current Page" in Word 2010
 
Join Date: Jan 2011
Location: NYC
Posts: 17
Jshopping is on a distinguished road
Default 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.
Reply With Quote
  #2  
Old 04-18-2011, 02:05 PM
Jshopping Jshopping is offline Macro to print "Current Page" in Word 2010 Windows XP Macro to print "Current Page" in Word 2010 Office 2003
Novice
Macro to print "Current Page" in Word 2010
 
Join Date: Jan 2011
Location: NYC
Posts: 17
Jshopping is on a distinguished road
Default 7 Views and no help, ha,ha.

Solved. May be easy for you guys, but it wasn't for me.
Thanks.
Reply With Quote
  #3  
Old 04-18-2011, 06:13 PM
macropod's Avatar
macropod macropod is offline Macro to print "Current Page" in Word 2010 Windows 7 32bit Macro to print "Current Page" in Word 2010 Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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
Delete whichever 'PrintOut' line you don't want - the first one prints the first page of the first Section; the second one prints the current page.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #4  
Old 04-18-2011, 06:26 PM
Jshopping Jshopping is offline Macro to print "Current Page" in Word 2010 Windows XP Macro to print "Current Page" in Word 2010 Office 2003
Novice
Macro to print "Current Page" in Word 2010
 
Join Date: Jan 2011
Location: NYC
Posts: 17
Jshopping is on a distinguished road
Default

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.
Reply With Quote
  #5  
Old 04-18-2011, 06:28 PM
macropod's Avatar
macropod macropod is offline Macro to print "Current Page" in Word 2010 Windows 7 32bit Macro to print "Current Page" in Word 2010 Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Jshopping View Post
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.
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]
Reply With Quote
  #6  
Old 04-18-2011, 06:48 PM
Jshopping Jshopping is offline Macro to print "Current Page" in Word 2010 Windows XP Macro to print "Current Page" in Word 2010 Office 2003
Novice
Macro to print "Current Page" in Word 2010
 
Join Date: Jan 2011
Location: NYC
Posts: 17
Jshopping is on a distinguished road
Default

Oh yes, how stupid of me not to think of that. Thanks for the tip.
Reply With Quote
  #7  
Old 05-03-2012, 03:07 PM
leis leis is offline Macro to print "Current Page" in Word 2010 Windows XP Macro to print "Current Page" in Word 2010 Office XP
Novice
 
Join Date: May 2012
Posts: 3
leis is on a distinguished road
Default

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*
Reply With Quote
  #8  
Old 05-03-2012, 07:13 PM
macropod's Avatar
macropod macropod is offline Macro to print "Current Page" in Word 2010 Windows 7 64bit Macro to print "Current Page" in Word 2010 Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi leis,

See: http://www.gmayor.com/installing_macro.htm
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #9  
Old 05-04-2012, 04:33 PM
leis leis is offline Macro to print "Current Page" in Word 2010 Windows XP Macro to print "Current Page" in Word 2010 Office XP
Novice
 
Join Date: May 2012
Posts: 3
leis is on a distinguished road
Thumbs up 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
Reply With Quote
  #10  
Old 06-07-2012, 04:18 PM
leis leis is offline Macro to print "Current Page" in Word 2010 Windows XP Macro to print "Current Page" in Word 2010 Office XP
Novice
 
Join Date: May 2012
Posts: 3
leis is on a distinguished road
Default

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
Reply With Quote
  #11  
Old 06-08-2012, 01:15 AM
macropod's Avatar
macropod macropod is offline Macro to print "Current Page" in Word 2010 Windows 7 64bit Macro to print "Current Page" in Word 2010 Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

For your purposes, the macro could be reduced to:
Code:
Sub PrintOne()
ActiveDocument.PrintOut wdPrintCurrentPage
End Sub
Without knowing exactly what you've done vis-a-vis the button & QAT, I can't comment on that.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
macros

Thread Tools
Display Modes


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
Macro to print "Current Page" in Word 2010 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

Other Forums: Access Forums

All times are GMT -7. The time now is 05:58 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft