Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, community.
Could you help me with the SetInputFieldValue method?
Script:
set v = ActiveDocument.Fields("MyInputField")
v.SetInputFieldValue 0, "MyValue"
it sets MyValue in first row of table. It works well.
But problem appears when I have a selection in MyInputField.
How I can set value in the first selected row?
Thanks a lot.
Hi,
what about creating an auxiliary list box in the sheet and using:
set lb = ActiveDocument.GetSheetObject("LB01")
lb.SetInputFieldCell 0,"999" 'set first value to 999
Regards
This worked for me! Thanks!