C
Cheryl
I need to create a macro that will select a specific
printer (in Word) and then print to file (rather than
print out). When I use the following code, I get an error
on the "Active Printer" part:
Application.PrintOut FileName:="", ActivePrinter:="Local
Printer", _
Range:=wdPrintAllDocument, Item:=wdPrintDocumentContent, _
Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
Collate:=True, Background:=True, PrintToFile:=True, _
OutputFileName:=strPath & strNewFilename, Append:=False
Can anyone tell me how to fix this? I cannot get it to
work and would really appreciate any help I can get!!
printer (in Word) and then print to file (rather than
print out). When I use the following code, I get an error
on the "Active Printer" part:
Application.PrintOut FileName:="", ActivePrinter:="Local
Printer", _
Range:=wdPrintAllDocument, Item:=wdPrintDocumentContent, _
Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
Collate:=True, Background:=True, PrintToFile:=True, _
OutputFileName:=strPath & strNewFilename, Append:=False
Can anyone tell me how to fix this? I cannot get it to
work and would really appreciate any help I can get!!