I am pulling data from a word document using bookmarks.
If ActiveDocument.Bookmarks.Exists(sBookmark) Then
temp = ActiveDocument.Bookmarks(sBookmark).Range.Text
Else
iErrorCount = iErrorCount + 1
MsgBox ("ERROR: The Bookmark named '" & sBookmark & "' can not be found for: " & sFileName)
End If
The problem is that some users are adding a table inside the bookmark. When the data is placed in temp, I loose the table... but keep the contents. Is there a way to 'copy' the data out of the bookmark into temp? I need to keep the data in the same format that the user enters the information for the section.
Thanks,
Hill
If ActiveDocument.Bookmarks.Exists(sBookmark) Then
temp = ActiveDocument.Bookmarks(sBookmark).Range.Text
Else
iErrorCount = iErrorCount + 1
MsgBox ("ERROR: The Bookmark named '" & sBookmark & "' can not be found for: " & sFileName)
End If
The problem is that some users are adding a table inside the bookmark. When the data is placed in temp, I loose the table... but keep the contents. Is there a way to 'copy' the data out of the bookmark into temp? I need to keep the data in the same format that the user enters the information for the section.
Thanks,
Hill