1 Reply Latest reply: Jun 22, 2009 11:40 PM by Michael Solomovich RSS

    One Value Always Selected

    Mark McCoid

      I'm trying to set the One Value Always Selected property on a field via a macro using the following:

      set fieldDesc = ActiveDocument.Fields("CP1_EndDate").GetDescription
      fieldDesc.AlwaysOneSelected = TRUE

      It is not working and I'm not sure why. The API Doc says this property is read/write.

      Any Ideas?

      Thanks,
      Mark

        • One Value Always Selected
          Michael Solomovich

          Mark,
          Before applying this property, you must select one value. Any value, but only one. Here is how it may look like


          sub
          Set fld = ActiveDocument.GetField("CP1_EndDate") fld.Select <a specific value here>
          Set prop = fld.GetProperties
          prop.OneAndOnlyOne=True
          fld.SetProperties prop
          end sub