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

Re: Selection.InsertFile by Stefan

Stefan
Thu Mar 16 04:33:03 CST 2006

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


"Senad Isanovic" wrote in message
news:%23vzqIDOSGHA.5808@TK2MSFTNGP12.phx.gbl...
> 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
>
>