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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

alternate states syntax in macro

Hello,

how can i get the selection of a field using alternate states? I tried like:

set vCustomers = ActiveDocument.GetField("{[State1]}CUSTOMERS")

or

set vCustomers = ActiveDocument.GetField("State1::CUSTOMERS")

Thank you

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Try this:

Set vCustomers = ActiveDocument.GetField("CUSTOMERS", "State1")

or

Set vCustomers = ActiveDocument.Fields("CUSTOMERS", "State1")

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Try this:

Set vCustomers = ActiveDocument.GetField("CUSTOMERS", "State1")

or

Set vCustomers = ActiveDocument.Fields("CUSTOMERS", "State1")

Not applicable
Author

Thank you mchasse1