Hi Klaus,
>If the empty bookmark is right next to some word,
>you could get that word with
>ActiveDocument.Bookmarks("Mark").Range.Words(1)
good to know.
Even if the bookmark is within a word,
and also sentences(1), sections(1), paragraphs(1).
One could need it some day.
(Könnte man noch mal brauchen).
What would your translation be?

Signature
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
Klaus Linke - 13 Aug 2007 23:49 GMT
> One could need it some day.
> (Könnte man noch mal brauchen).
>
> What would your translation be?
Might come in handy? Though my school English isn't any better than yours I
think <g>
Klaus
Word.user - 14 Aug 2007 02:12 GMT
Hi,
Thanks for your input.
This is what I have:
IStart Bookmark Begins Here
What I want is
[Start Bookmark Begins Here]
> Hi Klaus,
>
[quoted text clipped - 11 lines]
>
> What would your translation be?
Klaus Linke - 14 Aug 2007 02:30 GMT
> Hi,
> Thanks for your input.
[quoted text clipped - 4 lines]
> What I want is
> [Start Bookmark Begins Here]
Making use of Helmut's extension, if you want the bookmark to span the
current sentence:
ActiveDocument.Bookmarks.Add _
Name:="start", _
Range:=ActiveDocument.Bookmarks("start").Range.Sentences(1)
or
With ActiveDocument
.Bookmarks.Add _
Name:="Test", _
Range:=.Bookmarks("Test").Range.Paragraphs(1).Range
End With
if it should span the whole paragraph.
In effect, you need to put in a new bookmark with the same name, destroying
the old one in the process.
Greetings,
Klaus