Using SEND.KEYS() to Change Paper Source in Printer SetupID: Q69614
|
The 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()
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 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.
In 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:
none for "Upper tray"
{DOWN} for "Lower tray"
(DOWN){DOWN) for "Manual feed"
{DOWN}{DOWN}{DOWN} for "Envelope"
"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
Additional query words: 2.0 2.00 2.01 2.1 2.10 3.0 4.0
Keywords :
Version :
Platform :
Issue type :
Last Reviewed: March 21, 1999