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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

macro error

Hi ,

I am getting object required v error when trying to execute the below macro

Sub test
set v = ActiveDocument.Variables("Variable1")
msgbox(v.GetContent.String)
End sub

1 Solution

Accepted Solutions
Not applicable
Author

Hi Riper,

Thanks i got the solution for Passing Inputbox variable value to macro variable.

Sub test

Dim Ibox1

set v = ActiveDocument.Variables("Variable12")
Ibox1=v.GetContent.String

End sub

View solution in original post

3 Replies
prieper
Master II
Master II

Do you have a variable called "Variable1"?

Not applicable
Author

Thanks Riper ,

Actually that is Varaible12 not Variable1.

I have one more problem how to assign this Variable12 value to variable created in macro.

Not applicable
Author

Hi Riper,

Thanks i got the solution for Passing Inputbox variable value to macro variable.

Sub test

Dim Ibox1

set v = ActiveDocument.Variables("Variable12")
Ibox1=v.GetContent.String

End sub