B
bryan
I am using the following code to insert a file into a template which has
letterhead and footer.
"
Dim myDoc As Document
Dim docrange As Range
Set myDoc = ActiveDocument
With myDoc
.Unprotect
Set docrange = .Range
docrange.Collapse wdCollapseEnd
docrange.InsertBreak wdSectionBreakNextPage
Set docrange = .Range
docrange.Collapse wdCollapseEnd
docrange.InsertFile "W:MN Collective Bargaining Letter.doc"
.Protect wdAllowOnlyFormFields, NoReset
End With
The template has letterhead, so this code adds a section break with the
letterhead and footer (Company address, emial, etc).
What I want to do is just add a word file next page as it is (no letterhead
or footer).
I have tried different things , even manually, like insert > Break > Page
break and I don't get the header but, still get the footer.
Any thoughts..
Thanks,
Bryan
letterhead and footer.
"
Dim myDoc As Document
Dim docrange As Range
Set myDoc = ActiveDocument
With myDoc
.Unprotect
Set docrange = .Range
docrange.Collapse wdCollapseEnd
docrange.InsertBreak wdSectionBreakNextPage
Set docrange = .Range
docrange.Collapse wdCollapseEnd
docrange.InsertFile "W:MN Collective Bargaining Letter.doc"
.Protect wdAllowOnlyFormFields, NoReset
End With
The template has letterhead, so this code adds a section break with the
letterhead and footer (Company address, emial, etc).
What I want to do is just add a word file next page as it is (no letterhead
or footer).
I have tried different things , even manually, like insert > Break > Page
break and I don't get the header but, still get the footer.
Any thoughts..
Thanks,
Bryan