Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Get value from inputbox in macro.

call a variable from input box to macro, code is given below:

set v = ActiveDocument.Variables("mailTo")

set mailto = v.GetContent.String -- Object required: '[string: "hssiddiqui@yahoo.com"]' -- error message

msgbox (mailto)

plz guide me how i write and call object.



1 Solution

Accepted Solutions
justinasp
Creator
Creator

Hi,

if I understand right, you just need to read InputBox text. See my example attached, where imput text is shown in TextBox.

Cheers,

Justinas

View solution in original post

2 Replies
justinasp
Creator
Creator

Hi,

if I understand right, you just need to read InputBox text. See my example attached, where imput text is shown in TextBox.

Cheers,

Justinas

Not applicable
Author

Hi naeem,

you must be use the follow code:


set v = ActiveDocument.Variables("mailTo")
dim v_mailTo
v_mailto = v.GetContent.String
msgbox (v_mailto)


Dim is the sentence for create variables.

I hopte this help you.

Best regards.