Macro Conversion

H

Harv

Hi, I hope you can help me out. I had a macro to control which printer tray
is used. When I upgraded from Word2000 to Word2003, the macro doesn't select
the proper tray. Any Suggestions would be appreciated. The code is below.

Sub MyPrint()
Dim sCurrentPrinter As String
aa = InputBox("How many copies would you like?", "Carrie's Macro", 3)
If aa = "" Or aa = 0 Then Exit Sub

sCurrentPrinter = ActivePrinter
Rem ActivePrinter = "Tektronix Phaser 860DP by Xerox"
With Options
.DefaultTray = "Tray 2"
End With
Application.PrintOut FileName:="", Copies:=aa
With Options
.DefaultTray = "Use printer settings"
End With
ActivePrinter = sCurrentPrinter
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top