Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How do i get the selected field value in macros vb script...????

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")



Labels (1)
4 Replies
Not applicable
Author

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.

Not applicable
Author

sorry man.

msgbox V.count ' will give the no of field values you have selected.

Not applicable
Author

thanks lot.....

Not applicable
Author

i got it by..

using CINT function....

set v1=ActiveDocument.Fields("Age").GetPossibleValues

s1=cint(v1.item(0).text)*10