21 Replies Latest reply on Apr 23, 2008 9:15 AM by (Olav_Kvern)

    How to select found text

    Tom Tomasko Level 1
      I need to find some text in a document. I do not want to change it, I just want it selected. Why does the following not work?

      //This works, placing the word in the find dialog box.
      app.findTextPreferences.findWhat = "text";

      //Should not this highlight (select) the word "text"?

      What I eventually want to do is to find Object Styles and fill in the text boxes temporarily with some color. This helps in checking 400 pages quickly to see if the correct styles have been used.

      But first I have to figure out this simple problem.