insert file

B

bryan

I am using the following code to insert a file into a template.
"
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.
What I want to do is just add the file due to size of the page.
The file to insert has a wider left and right indent so everything fits on
the page.
When I insert, does the file inherit the indent and margin of the template
or of it's own.
If it inherits the template, how can I change the left and right
indentation, margins,
etc.?


Thanks ,
Bryan
 

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