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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
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.