none
Word Bookmark check RRS feed

  • Question

  • i'm using C# .net 2.0

    Is it possible to check if a word template has a certain bookmark?

    if bookmark name "babababab"

    then

    end if

     

    is something like this possible?

    Wednesday, July 26, 2006 6:59 PM

Answers

  • Hi

    The simplest way is presuming application is the Word Application Object

    if (application.ActiveDocument.Bookmarks.Exists("babababab"))

    {

    }

    else

    {

    }

     

    Wednesday, July 26, 2006 7:22 PM
    Moderator

All replies

  • Hi

    The simplest way is presuming application is the Word Application Object

    if (application.ActiveDocument.Bookmarks.Exists("babababab"))

    {

    }

    else

    {

    }

     

    Wednesday, July 26, 2006 7:22 PM
    Moderator
  • Thank you!  That is exactly what I was looking for.  I will try that.
    Thursday, July 27, 2006 1:47 PM