How to get text between bookmarks?

W

Word.user

How to get text between two bookmarks. The bookmarks can be 1or 2 paragraphs
apart OR can be 1or2 pages apart.

Thanks in advance
 
R

Russ

Set a range from the end of the range of the first bookmark to the start of
the range of the second bookmark using .Start and .End
Overwrite that range with ExampleRange.Text = "Test"
Or look at this site for working with bookmarks:
 
R

Russ

If you're not talking about inserting text, but retrieving text then:
Set a range from the end of the range of the first bookmark to the start of
the range of the second bookmark using .Start and .End
Then MsgBox MyNewRange.Text
 

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