Using SEND.KEYS() to Change Paper Source in Printer SetupLast reviewed: September 13, 1995Article ID: Q69614 |
The information in this article applies to:
SUMMARYThe following macro will change the paper source to "lower tray" on the Helwett-Packard (HP) LaserJet IIP:
A1: =SEND.KEYS("%(S)~%(S){PGUP}{DOWN}~~") A2: =PRINTER.SETUP?() A3: =RETURN()This macro sends keystrokes to the Printer Setup dialog box. The following is an explanation of the string used in the SEND.KEYS() function:
Command Description ------- ----------- %(S) Chooses Setup ~ Chooses OK (Excel 3.00 only, see below **) %(S) Selects "paper source" {PGUP} Moves selection to the top to choose "upper tray" {DOWN} Moves selection down one time to choose "lower tray" ~~ Chooses OK twice to enter the changes.** This is only needed in Microsoft Excel version 3.0 with printers that support extended printer attributes accessible in Page Setup from the File menu. Epson printer drivers, for example, do not support these attributes; therefore, the tilde is not necessary. If you are not sure if your printer has these attributes, you can manually choose Printer Setup from the File menu and choose the setup button. If a dialog box is displayed with the following message, you need the tilde: This command controls default printer settings for all documents and all applications. Use File Page Setup to set Orientation, Paper Size, and Scaling for individual documents. MORE INFORMATIONIn the Printer Setup dialog box, there is no accelerator key combination that will directly select a paper source such as "lower tray." Instead, the arrow keys should be used to select from the list of sources available. On the HP LaserJet IIP, for example, there are four possible choices for the paper source:
Notes
REFERENCES"Function Reference," version 4.0, page 385 "Microsoft Excel Function Reference," version 3.0, pages 214-215. "Microsoft Excel for Windows Functions and Macros," version 2.1x, pages 353-254, 373-375
|
KBCategory: kbprint kbmacro
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |