Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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