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?


        • One Value Always Selected
          Michael Solomovich

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

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