View Single Post
 
Old 02-10-2021, 11:56 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,980
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

What are you asking for?

Your code is saying if "mybookmark" doesn't exist then tell me the name of the nth (where n = the paragraph number) bookmark. This will fail as soon as the number of bookmarks is surpassed by the number of paragraphs.

Bookmarks can be an insertion point or a range of text either within a single paragraph or across a bunch of content. So if a bookmark exists it could show a range of zero length or span multiple paragraphs.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote