if statement in word macro

K

Kurt

My firm uses several printers, which have different tray configurations, i.e.
letterhead, bond, and draft are in different trays per several printers. I'd
like to write a Word 2003 macro that does something like:

If printer is HP5000 then setfirst page is tray one, all other pages tray
three; if printer is HP3200 then first page is tray two, all other pages tray
three; etc.

I want to write 2 macros like the above, one when the user wants to change
the trays for the document to draft, the other for letterhead. Is this
possible? I know how to set up the VBA for the trays, the part I'm missing
is the IF statement for the different printers, so that a user only has to
click one button for the draft setup, and the macro sets up the correct trays
from the Word Page setup feature, based on the printer he/she is using.

Second, is there a VBA code which differentiates between network printer and
local printer?

THANKS a ton!
Kurt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top