Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Check variable with condition to set title text

I know the following is wrong, but just to give an idea what I tried to achieve. I have a variable in VBA Macro called 'key'. I want to test the value of the 'key' in the title text in order to populate a title caption. What is the correct syntax?

1 Solution

Accepted Solutions
Not applicable
Author

Find answer myself:

define variable Select_Key in document properties

set v = ActiveDocument.Variables("Select_Key")

v.SetContent key, true

Then will be able to use $(Select_Key) in the if statement.

View solution in original post

1 Reply
Not applicable
Author

Find answer myself:

define variable Select_Key in document properties

set v = ActiveDocument.Variables("Select_Key")

v.SetContent key, true

Then will be able to use $(Select_Key) in the if statement.