G
Gary
Hello folks,
I inherited a macro that does not work with a new letterhead template that
has a framed paragraph. Please let me know if there is a way to have the
macro work with the new letterhead. I am a macro novice but know how to
navigate enough to edit an existing macro. Below are the macro and the error
message:
Error is: "Run time error 4605 | This method or property is not available
because the object refers to a framed paragraph" debug is greyed out for me
Sub MakePlain()
'
' Macro recorded 6/2/2003 by bradica
'
Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Name:="1"
Selection.PageSetup.FirstPageTray = 259
End Sub
Sub MakeLetterhead()
'
' Macro recorded 6/2/2003 by bradica
'
Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Name:="1"
Selection.PageSetup.FirstPageTray = 260
End Sub
Sub Print_withCopy()
CommandBars("Mail Merge").Visible = False
MakeLetterhead
ActiveDocument.PrintOut ' Print it ALL
MakePlain
ActiveDocument.PrintOut Range:=wdPrintFromTo, From:="1", To:="999999" '
Don't Print Envelope
End Sub
I inherited a macro that does not work with a new letterhead template that
has a framed paragraph. Please let me know if there is a way to have the
macro work with the new letterhead. I am a macro novice but know how to
navigate enough to edit an existing macro. Below are the macro and the error
message:
Error is: "Run time error 4605 | This method or property is not available
because the object refers to a framed paragraph" debug is greyed out for me
Sub MakePlain()
'
' Macro recorded 6/2/2003 by bradica
'
Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Name:="1"
Selection.PageSetup.FirstPageTray = 259
End Sub
Sub MakeLetterhead()
'
' Macro recorded 6/2/2003 by bradica
'
Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Name:="1"
Selection.PageSetup.FirstPageTray = 260
End Sub
Sub Print_withCopy()
CommandBars("Mail Merge").Visible = False
MakeLetterhead
ActiveDocument.PrintOut ' Print it ALL
MakePlain
ActiveDocument.PrintOut Range:=wdPrintFromTo, From:="1", To:="999999" '
Don't Print Envelope
End Sub