Discussion Locked

Using VB macros to call printer tray

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

We are currently replacing some Win95 PC's in our department with Win2K. Under Win95 and Win98, users could use VB macros (integrated as buttons) on their desktop to send print jobs directly to a specific printer tray (to print letterhead forms). Under WinNT and Win2K, these macros no longer work. Is there a way to call a specific tray with VB, or is there a 3rd party utility that can allow this printing capability (while keeping it simple for the user)?

We're using HP4000, 4050, and 5000printers and sending jobs from MS Word.

3 replies

by bishopca

I don't have access to those printers but start here:

This example sets the tray to be used for printing all but the first page of each section in the active document.

ActiveDocument.PageSetup.OtherPagesTray = wdPrinterUpperBin

This examplesets the tray to be used for printing all but the first page of each section in the selection.

Selection.PageSetup.OtherPagesTray = wdPrinterLowerBin

This discussion is closed to new replies.