2 Replies Latest reply: Apr 23, 2010 4:07 AM by koberlechner RSS

    Select multiple values from a Field

    koberlechner

      Hi,

      I want to write a Marco using VBScript. Upon event rising, the macro should select certain values from the related field. In my case, I have a field with values ranging from 0 to 6. If the user clicks the button, values from 4-6 should be selected.

      Something like:

      <code>

      sub MYBUTTON
      set f = ActiveDocument.GetField ("MYFIELD")
      f.select (4 to 6)
      end sub

      </code>

      Thanks in advance,

      Klaus