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?
ActiveDocument.PrintOut Range:=wdPrintCurrentPage
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?
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
Dim sTray As String sTray = Options.DefaultTray Options.DefaultTray = "Rear Tray" Application.PrintOut Range:=wdPrintCurrentPage Options.DefaultTray = sTray
Graham Mayor - MS MVP (Word) 2002-2019
Visit my web site for more programming tips and ready made processes
http://www.gmayor.com
Many thanks. Once I found the correct paper tray names that code worked perfectly.