add bookmark w/in table

J

Jay Freedman

There are quicker (that is, quick 'n dirty) ways, but this is guaranteed to
work:

Dim myRange As Range

' get the range of the cell in row 2, column 3
Set myRange = ActiveDocument.Tables(1).Cell(2, 3).Range

' avoid including the cell marker
myRange.MoveEnd unit:=wdCharacter, Count:=-1

' insert the bookmark
ActiveDocument.Bookmarks.Add Name:="bkmk1", Range:=myRange

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top