mortenheide
01-08-2016, 05:09 AM
Hi everybody
At my job we have several templates, within which we merge information from another system. Problem is, that this information is unusable if a user has copy-pasted text, and one bookmark has been placed within another.
So I want to create a function, that checks if a bookmark contains one or more other bookmarks.
I can of cours loop through the bookmarks in the document, and I am pretty sure that I can check within the range of a bookmark if a specific bookmark exists. But I can't seem to work with wildcards within the bookmark.exists function, so how do I determine if any bookmark exists witin a range?
Thankyou so much in advance
Morten
At my job we have several templates, within which we merge information from another system. Problem is, that this information is unusable if a user has copy-pasted text, and one bookmark has been placed within another.
So I want to create a function, that checks if a bookmark contains one or more other bookmarks.
I can of cours loop through the bookmarks in the document, and I am pretty sure that I can check within the range of a bookmark if a specific bookmark exists. But I can't seem to work with wildcards within the bookmark.exists function, so how do I determine if any bookmark exists witin a range?
Thankyou so much in advance
Morten