I find this easy to do in access but cannot figure out how in word. I use the code below to print the current page. How can I make it select a particular paper tray?
Code:ActiveDocument.PrintOut Range:=wdPrintCurrentPage
Printable View
I find this easy to do in access but cannot figure out how in word. I use the code below to print the current page. How can I make it select a particular paper tray?
Code:ActiveDocument.PrintOut Range:=wdPrintCurrentPage
See http://www.gmayor.com/fax_from_word.htm which includes code for selecting trays. However if you know the name of the tray you should be able to call it by name. The following certainly works with my Canon printer
Code:Dim sTray As String
sTray = Options.DefaultTray
Options.DefaultTray = "Rear Tray"
Application.PrintOut Range:=wdPrintCurrentPage
Options.DefaultTray = sTray
Many thanks. Once I found the correct paper tray names that code worked perfectly.