Hi: I have a question; one that I cannot seem to find any information on anywhere … I feel it is a common-enough problem that many firms would have … It has to do with printing different paper types to different printers
OK, in my office I have several different types of HP printers: HP4+, HP5, HP4050. The only thing that is consistent about these printers is that they have the following tray setups: envelope feeder, MP/Tray1, Tray2, and Tray3.
I have more paper types than I do trays: draft, bond, 1stpageletterhead, 2ndpageletterhead, legal, labels, envelopes
So: I would like to standardize what trays will hold what type of paper:
Envelopes Envelope Feeder
MP/Tray1 2nd page letterhead
Tray2 1st page letterhead
Tray3 Draft
MP/Tray1 Legal, labels, etc.
(prompted)
I want to create a macro that will set the proper paper trays depending on the type of document produced: e.g. “Letter” would set the first page of the document to Tray2 and all subsequent pages to Tray3.
OK, I can do that. However, the macro only works for HP4050 printers. HP5 printers don’t have a “Tray3”, they have “Lower Bin”.
Now that I got that all out of the way, here is what I want: A macro that determines the “type” of printer (HP4+, HP5), and then sets the appropriate tray codes. I can get the tray codes my creating the macro for just one printer at a time (whatever my default printer is). What I can’t seem to figure out is whether or not I can tell what type of printer my default printer is, so that I can use a SELECT CASE or IF/THEN statement to set the tray codes. Is there a VB or VBA call that will return this information?
Thanks for whatever help you can give …
Andrew Harrell (VBA newbie)
Greenberg, Traurig
harrella@gtlaw.com