Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.
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
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
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.