P
Preet
Hi
I hope you can help and THANK YOU in advance!!
I have a document with a macro. On opening, it mail merges, and then
brings up the "Save As" box to "Save as PDF", this is because I have
set the "Active Printer = "Acrobat Distiller", after this I wanted to
add a simple code to say "Active Printer = "default" i.e. back to the
default printer
But I cannot get it to do this, it keeps the Acrobat Distiller option
as the default printer.
I cannot specify a printer as differnt users will be using the doc and
have different default printers.
I have used the link below to help, but this doesnt help me at all:
http://word.mvps.org/FAQs/MacrosVBA/ChangeCurPrinter.htm
This is my code so far:
'ActivePrinter = "Acrobat Distiller"
' 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
ActivePrinter = "default" - BUT THIS DOESNT WORK
Then I used this:
Dim sCurrentPrinter As String
sCurrentPrinter = ActivePrinter
ActivePrinter = "Acrobat Distiller"
Application.PrintOut FileName:=""
ActivePrinter = sCurrentPrinter
Thank you - sorry for the LONG email!
I hope you can help and THANK YOU in advance!!
I have a document with a macro. On opening, it mail merges, and then
brings up the "Save As" box to "Save as PDF", this is because I have
set the "Active Printer = "Acrobat Distiller", after this I wanted to
add a simple code to say "Active Printer = "default" i.e. back to the
default printer
But I cannot get it to do this, it keeps the Acrobat Distiller option
as the default printer.
I cannot specify a printer as differnt users will be using the doc and
have different default printers.
I have used the link below to help, but this doesnt help me at all:
http://word.mvps.org/FAQs/MacrosVBA/ChangeCurPrinter.htm
This is my code so far:
'ActivePrinter = "Acrobat Distiller"
' 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
ActivePrinter = "default" - BUT THIS DOESNT WORK
Then I used this:
Dim sCurrentPrinter As String
sCurrentPrinter = ActivePrinter
ActivePrinter = "Acrobat Distiller"
Application.PrintOut FileName:=""
ActivePrinter = sCurrentPrinter
Thank you - sorry for the LONG email!