Selection.InsertFile

S

Senad Isanovic

I have 2 docs. I want firstpage.doc to be insertet at the begining of the
second doc. The firstpage should always be inserted in the begining, so
using Selection is not a good way of doing this..

Selection.InsertFile FileName:="firstpage.doc", Range:="", _
ConfirmConversions:=False, Link:=False, Attachment:=False
ActiveWindow.ActivePane.VerticalPercentScrolled = 0
 
S

Stefan Blom

Use a Range object instead of the Selection object. For example:

Dim r As Range
Set r = ActiveDocument.Range(0, 0) 'beginning of doc

r.InsertFile FileName:="firstpage.doc", Range:="", _
ConfirmConversions:=False, Link:=False, Attachment:=False

--
Stefan Blom
Microsoft Word MVP


in message
news:%[email protected]...
 

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