Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / September 2005

Tip: Looking for answers? Try searching our database.

Macro Help

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Domenic - 15 Sep 2005 14:11 GMT
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
Jean-Guy Marcil - 15 Sep 2005 15:26 GMT
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
[quoted text clipped - 11 lines]
>        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.

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org 

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.