Thread: [Solved] Run a Macro in Word 2010
View Single Post
 
Old 04-28-2011, 07:35 AM
Joyce301 Joyce301 is offline Windows 7 64bit Office 2010 32bit
Novice
 
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