Recorded Macro Does Not Retain Printer Selection |
Q113240
When you record a macro in Word 6.0 for Windows, it does not retain the current Printer setting. The only time Word records the Printer setting is when you choose the Set As Default Printer button in the Printer Setup dialog box. This differs from Word 2.x functionality, in which the macro recorder does retain the Printer setting, even when you do not switch to a different default printer.
By design, Word 6.0 always uses the default Windows printer driver, so the macro recorder does not record information about the printer driver unless you change to a different default printer.
If you want your Word macro to print using a specific printer driver, use
the FilePrintSetup command. To record this macro, turn on the macro
recorder and perform the following steps.
Note: This workaround resets your default Windows printer setting.
Sub MAIN
FilePrintSetup .Printer = "HP LaserJet 4Si/4Si MX on LPT1:"
FilePrint .AppendPrFile = 0, .Range = "0", .PrToFileName = "", \
.From = "", .To = "", .Type = 0, .NumCopies = "1", .Pages = "", \
.Order = 0, .PrintToFile = 0, .Collate = 1, .FileName = ""
End Sub
Additional query words: 6.00a missing winword word6
Keywords :
Issue type :
Technology :
|
Last Reviewed: November 4, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |