View Single Post
 
Old 03-03-2012, 02:03 AM
dpb001 dpb001 is offline Windows Vista Office 2010 64bit
Novice
 
Join Date: Mar 2012
Posts: 4
dpb001 is on a distinguished road
Default How do I read from a table located with a bookmark

I would lile to read / write to a version history table in a word 2010 document. I can locate the table with a bookmark, but can't see how I access the individual cells so I can write to or read from the table.

Code to locate table with a bookmark

Dim r as Range

If ActiveDocument.Bookmarks.Exists("Document_Revision _Table") Then
Set r = ActiveDocument.Bookmarks("Document_Revision_Table" ).Range
Selection.GoTo What:=wdGoToBookmark, Name:="Document_Revision_Table"
Else
MsgBox "Missing bookmark"
End If

As you can tell from this question I am a novice with vb so any explanatory text would be useful.

Much appreciated.
Reply With Quote