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: 
Anonymous
Not applicable

Select multiple values programmatically

Hello,

In a sub routine, how would I select (or pre-select) multiples values?

Currently I use something like this to choose a single state but I now want to choose two or more states.

ActiveDocument.Fields("State").Select "CA"

ActiveDocument.Fields("State").Select "TX"

Thanks!

2 Replies
Nicole-Smith

I would assume it would work the same way as trying to select multiple values within the tool itself:

ActiveDocument.Fields("State").Select "(CA|TX)"


Disclosure: I haven't test this, just going off of what I already know about the tool.

Anonymous
Not applicable
Author

Ah... I was missing the parenthesis.  That's why it didn't work for me before posting this question.

Thank you.