#1
|
|||
|
|||
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 Thank You!! Joyce Last edited by macropod; 04-29-2011 at 06:36 PM. Reason: Added code tags |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
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 |
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 |