Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everyone,
is there a way to set property [always one selected value] in one of my list Boxes via macro? (Visual Basic)
Thanks for any ideas!
Hi Lucka,
sub AlwOneSelect
set obj = ActiveDocument.GetSheetObject ("OB01")
set boxfield = obj.GetField
set prop = boxfield.GetProperties
if boxfield.GetFieldFlags.OneAndOnlyOne
then
prop.OneAndOnlyOne = false
else
prop.OneAndOnlyOne = true
end if
boxfield.SetProperties prop
end sub
BR
Martin
Hi Lucka,
sub AlwOneSelect
set obj = ActiveDocument.GetSheetObject ("OB01")
set boxfield = obj.GetField
set prop = boxfield.GetProperties
if boxfield.GetFieldFlags.OneAndOnlyOne
then
prop.OneAndOnlyOne = false
else
prop.OneAndOnlyOne = true
end if
boxfield.SetProperties prop
end sub
BR
Martin