Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-28-2011, 07:35 AM
Joyce301 Joyce301 is offline Run a Macro in Word 2010 Windows 7 64bit Run a Macro in Word 2010 Office 2010 32bit
Novice
Run a Macro in Word 2010
 
Join Date: Apr 2011
Posts: 2
Joyce301 is on a distinguished road
Default Run a Macro in Word 2010

I have been using Word 97 and had macros that were adding a logo and printing each document that was open. I upgraded to Word 2010, uploaded the macros, and the problem that I am having is that the macro will not cycle through each open document. I typically open 10 documents at a time and run the macro, the macro in 2010 only works on the "active" document that I have open. Here is my print all open documents macro:


Code:
Sub PrintAllOpen()
ActivePrinter = "iR7200-M2"
For Each dDoc In Documents
  dDoc.Activate
  ActiveDocument.PrintOut
Next dDoc
End Sub
Can someone please help??
Thank You!!
Joyce

Last edited by macropod; 04-29-2011 at 06:36 PM. Reason: Added code tags
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Run a Macro in Word 2010 Macro to print "Current Page" in Word 2010 Jshopping Word VBA 10 06-08-2012 01:15 AM
Macro in word khalfenadeem Word 1 04-11-2011 04:35 PM
Run a Macro in Word 2010 Help with Word macro please Philcraig69 Word VBA 2 01-21-2011 04:19 PM
Word 2003 macro to Word 2007 to 2010 to... maruapo Word VBA 0 06-04-2010 03:43 PM
Word macro weezypenguin Word 0 02-25-2010 01:25 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:21 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