Board index » delphi » How can I determine if a bookmark exists in MSWord?

How can I determine if a bookmark exists in MSWord?


2005-07-14 08:35:32 PM
delphi265
 
 

Re:How can I determine if a bookmark exists in MSWord?

if yourDocument.Bookmarks.Count>0 then
<do something>
 

Re:How can I determine if a bookmark exists in MSWord?

I think they mean a certain bookmark (of some given name)
Quote
if yourDocument.Bookmarks.Count>0 then
<do something>

--
With best regards, Mike Shkolnik
EMail: XXXX@XXXXX.COM
www.scalabium.com


 

Re:How can I determine if a bookmark exists in MSWord?

No problem:-)
if yourDocument.Bookmarks.Exists('yourBookmarkName') then
<>
"George Birbilis" <XXXX@XXXXX.COM>writes
Quote
I think they mean a certain bookmark (of some given name)

>if yourDocument.Bookmarks.Count>0 then
><do something>
>
>--
>With best regards, Mike Shkolnik
>EMail: XXXX@XXXXX.COM
>www.scalabium.com
>
>