Consulting

Results 1 to 3 of 3

Thread: Selecting paper tray before print

  1. #1

    Selecting paper tray before print

    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

  2. #2
    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

  3. #3
    Many thanks. Once I found the correct paper tray names that code worked perfectly.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •