View Single Post
 
Old 08-28-2014, 02:35 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,359
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You could use a macro like:
Code:
Sub InsertFiles()
Application.ScreenUpdating = False
Dim i As Long, strFile As String, DocTgt As Document, DocSrc As Document
Set DocTgt = ActiveDocument
Set DocSrc = Documents.Open("SourceDocumentpath & Name", ReadOnly:=True, AddToRecentFiles:=False)
With DocTgt.Content
  For i = 0 To UBound(Split(DocSrc.Content.Text, vbCr)) - 1
    strFile = Split(DocSrc.Content.Text, vbCr)(i)
    .Collapse wdCollapseEnd
    .InsertAfter strFile & vbCr
    .InsertFile FileName:=strFile, ConfirmConversions:=False, Link:=False
    .InsertAfter vbCr & vbCr
  Next
End With
DocSrc.Close SaveChanges:=False
Application.ScreenUpdating = True
End Sub
Simply replace 'SourceDocumentpath & Name' with the source file's name.

PS: Please don't post multiple questions about the same issue.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote