Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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