Macro Help

D

Domenic

Hi, I have a macro setup to print to certain printer. After I run the macro
it sets that printer as default. Is it possible to run the macro and not have
word retain this printer as default. This is the part I think sets the
printer as default:

'printer instructions:
ActivePrinter = "\\Harmonfs3\certified"
Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="",
PageType:=wdPrintAllPages, _
ManualDuplexPrint:=False, Collate:=True, Background:=True,
PrintToFile:= _
False, PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0
WordBasic.FileClose 2

Bye:

Any help would be appreciated,

Domenic
 
J

Jean-Guy Marcil

Domenic was telling us:
Domenic nous racontait que :
Hi, I have a macro setup to print to certain printer. After I run the
macro it sets that printer as default. Is it possible to run the
macro and not have word retain this printer as default. This is the
part I think sets the printer as default:

'printer instructions:
ActivePrinter = "\\Harmonfs3\certified"
Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="",
PageType:=wdPrintAllPages, _
ManualDuplexPrint:=False, Collate:=True, Background:=True,
PrintToFile:= _
False, PrintZoomColumn:=0, PrintZoomRow:=0,
PrintZoomPaperWidth:=0, _ PrintZoomPaperHeight:=0
WordBasic.FileClose 2

Save the current Active Printer in a variable before you start your
procedure, run your stuff, then reset the Active Printer.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

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