Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Office XP - Word Macro - Print to a specific tray...

Status
Not open for further replies.

JEG78

IS-IT--Management
Feb 4, 2004
70
US
I currently am in a mixed Corel Wordperfect and MS Office XP environment. I am familiar with how to setup a macro in WP to automatically select a specific tray by pushing a button I add to the toolbar.

Is there anyway to setup a similar function in MS Word?

If you need further clarification of what I am attempting, please let me know.
 
I'm no Word expert, but have you tried simply recording yourself doing that and then editing the macro as needed. I tried doing just that and ended up with the following after some editing:-

Sub PrintTray()
With ActiveDocument.PageSetup
.FirstPageTray = wdPrinterUpperBin
.OtherPagesTray = wdPrinterDefaultBin
End With
End Sub

I've left two different trays in there so you can see the difference, but see what the recorder gives you.

This can either be assigned to a keyboard shortcut or to a toolbar icon, and stored either in your normal.dot or in the document itself.

Regards
Ken................

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]

----------------------------------------------------------------------------
 
I tried recording it, but it goes to Tray 1 (Manual Feed) everytime. I have not edited the macro.

It is a HP LaserJet 4050 with an Envelope Feeder/Tray 1 (Manual)/Tray 2/Tray 3.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top