Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello every1[:)]
Can some1 please tell me how can i Display selected item from search object in a label.
Please help...[^o)]
Hi,
You could use the follow sentence:
=GetFieldSelections(FieldName)
I hope this help you.
Best regards.
use GetFieldSelections(FieldName) or macro
you could use the follow sentence:
=GetFieldSelections(FieldName)
marco:
function getselectfield
dim s
dim mySelections
set mySelections=ActiveDocument.Fields("目的国").GetselectedValues '获得字段选择的值,然后付给变量s
if mySelections.Count<>0 then
s=s&mySelections.item(0).text
for i=1 to mySelections.Count-1
s=s&","&mySelections.item(i).text
next
end if
set mytext = ActiveDocument.GetSheetObject("SO05") '给搜索框里面的文本赋值
prop = mytext.GetProperties
prop.SearchFieldText.v = s
mytext.SetProperties prop
End function
in the search object properties-->text in search filed 。
in the local is work well,but server is not work.