R
Raj
Hi Guys/Dolls
How do I insert the contents of a file between an enclosed bookmark?
some code which I found at
http://word.mvps.org/FAQs/MacrosVBA/InsertingTextAtBookmark.htm
Sub UpdateBookmark(BookmarkToUpdate As String, TextToUse As String)
Dim BMRange As Range
Set BMRange = ActiveDocument.Bookmarks(BookmarkToUpdate).Range
BMRange.Text = TextToUse
ActiveDocument.Bookmarks.Add BookmarkToUpdate, BMRange
End Sub
but this deals with text - so how do I insert contents of a file.
Any help would be appreciated.
Raj
How do I insert the contents of a file between an enclosed bookmark?
some code which I found at
http://word.mvps.org/FAQs/MacrosVBA/InsertingTextAtBookmark.htm
Sub UpdateBookmark(BookmarkToUpdate As String, TextToUse As String)
Dim BMRange As Range
Set BMRange = ActiveDocument.Bookmarks(BookmarkToUpdate).Range
BMRange.Text = TextToUse
ActiveDocument.Bookmarks.Add BookmarkToUpdate, BMRange
End Sub
but this deals with text - so how do I insert contents of a file.
Any help would be appreciated.
Raj