Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
How do i get the selected field value in macros vb script...????
set
msgbox(v.GetContent. String)
it won't work....
v=ActiveDocument.Fields("Age")V=ActiveDocument.Fields("Age").GetPossibleValues
msgbox V.item(0).Text ' will give you field value what you have selected.
msgbox b.count ' will give the no of field values you have selected.
sorry man.
msgbox V.count ' will give the no of field values you have selected.
thanks lot.....
i got it by..
using CINT function....
set v1=ActiveDocument.Fields("Age").GetPossibleValues
s1=cint(v1.item(0).text)*10