Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
How can i select muti values in script using "ActiveDocument.Fields("DOB").Select"
set var=ActiveDocument.fields("Month").GetSelectedValues
for i=0 to var.count-1
ActiveDocument.fields("Month").select var.item(0).text
next
this results only last value from the loop get selected......
i need all the values??? ............
Hi.
You should use a .ToggleSelect function.
For you example:
set var=ActiveDocument.fields("Month").GetSelectedValues
ActiveDocument.fields("Month").select var.item(0).text
for i=1 to var.count-1
ActiveDocument.fields("Month").ToggleSelect var.item(i).text
next
Thanks lot... for ur immediate reply...