J
Jules
All of our printers are set to print duplex, however, there are times when
users need to print simplex and I am trying to set up a macro which changes
from duplex to simplex.
I have used the code in the following link
http://support.microsoft.com/?kbid=230743
As we are using Word 2000, I have changed "Printer.DeviceName" to
"ActivePrinter" and have reversed the duplex settings (ie. where it is 2 have
changed to 1 and vice versa).
The macro works perfectly if I use the code for UserForm1 from the link (ie.
creating a new Word Object and Document Object), however, I want to be able
to have the macro work on the open document (ActiveDocument) without having
to create a new word object/document object.
If I use:
"SetPrinterDuplex ActivePrinter, 1
ActiveDocument.PrintOut
SetPrinterDuplex Activeprinter, 2"
It still prints on duplex.
Is there any reason why you have a create a new word object/document object
to have this work properly?
Hopefully, this will make sense to someone and you will be able to answer my
questions.
users need to print simplex and I am trying to set up a macro which changes
from duplex to simplex.
I have used the code in the following link
http://support.microsoft.com/?kbid=230743
As we are using Word 2000, I have changed "Printer.DeviceName" to
"ActivePrinter" and have reversed the duplex settings (ie. where it is 2 have
changed to 1 and vice versa).
The macro works perfectly if I use the code for UserForm1 from the link (ie.
creating a new Word Object and Document Object), however, I want to be able
to have the macro work on the open document (ActiveDocument) without having
to create a new word object/document object.
If I use:
"SetPrinterDuplex ActivePrinter, 1
ActiveDocument.PrintOut
SetPrinterDuplex Activeprinter, 2"
It still prints on duplex.
Is there any reason why you have a create a new word object/document object
to have this work properly?
Hopefully, this will make sense to someone and you will be able to answer my
questions.