change default printer

D

dlee

I have an application that runs word in batch, and I want to change the
printer to use a duplex printer. Print the report, and change the printer
back to the default printer.

I created this template, which resides in templates directory, with a
shortcut residing in C:\Documents and Settings\Darrell Lee\Application
Data\Microsoft\Word\STARTUP

I have macros autoexec and autoclose in the template as shown below, but it
doesn't seem to be working. I could use some help.

Sub AutoExec()
'
' AutoExec Macro
' change to duplex printer
'
ActivePrinter = "\\swbc-pdw\Aficio2045-ELIC"
End Sub
Sub AutoClose()
'
' AutoExec Macro
' change back to original default printer
'
ActivePrinter = "\\swbc-pdw\LM410-ELIC"
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top