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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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.