Hi pikerman,
To fix the duplicate printing, I've changed the line:
ActiveDocument.PrintOut
to:
If i > iStart Then ActiveDocument.PrintOut
I'm not sure what you mean by "the next time I run the demo, it prints the last page to be printed again". In my testing, it was the first certificate in the sequence that was duplicated. The above change fixes that.
As for the document being macro-enabled (docm format), that's a Word 2007 thing. Since you're using Word 2003, you can use the .doc format. However, the document still contains a macro and you'll still get the 'enable macros' prompt when you open it.
See attached.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|