C
Cheryl Cavanaugh
I have a template I insert into documents automatically using the
{INCLUDETEXT .....} command. When I press CTRL + A, F9, the template is
pulled in beautifully. However, when I try to use a macro to print my
document, I get a runtime error 4608 and value out of range error. When I
select "debug", this is what I get: The line ".FirstPageTray = 263" is
highlighted. What is the problem. The macro works on documents without the
IncludeText and my update fields on print in Tools/Options is off.
Application.Run ("CopyStamp.deleteCopy")
ActivePrinter = "\\LAWSERVER\Letter_Printer"
With ActiveDocument.PageSetup
.FirstPageTray = 263
.OtherPagesTray = 262
End With
Application.Dialogs(wdDialogFilePrint).Show
ActivePrinter = "\\LAWSERVER\Draft_Printer"
With ActiveDocument.PageSetup
.FirstPageTray = 0
.OtherPagesTray = 0
End With
End Sub
{INCLUDETEXT .....} command. When I press CTRL + A, F9, the template is
pulled in beautifully. However, when I try to use a macro to print my
document, I get a runtime error 4608 and value out of range error. When I
select "debug", this is what I get: The line ".FirstPageTray = 263" is
highlighted. What is the problem. The macro works on documents without the
IncludeText and my update fields on print in Tools/Options is off.
Application.Run ("CopyStamp.deleteCopy")
ActivePrinter = "\\LAWSERVER\Letter_Printer"
With ActiveDocument.PageSetup
.FirstPageTray = 263
.OtherPagesTray = 262
End With
Application.Dialogs(wdDialogFilePrint).Show
ActivePrinter = "\\LAWSERVER\Draft_Printer"
With ActiveDocument.PageSetup
.FirstPageTray = 0
.OtherPagesTray = 0
End With
End Sub