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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Macro with qlik

Hi,

I had a doubt with a Macro, i have the code to export and save the document in csv but is it possible to filter the table in the macro?


Thank you

3 Replies
marcus_sommer

Here a few examples from the APIGuide.qvw (is in your install-folder by automation):

ActiveDocument.Fields("Month").Select "September"

ActiveDocument.Fields("Month").Select "J*"

ActiveDocument.Fields("Sales").Select ">1500"

- Marcus

vinieme12
Champion III
Champion III

Preferably use Trigger Actions

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
saimahasan
Partner - Creator III
Partner - Creator III

You can use these lines of code:

SET Doc = ActiveDocument

SET Field = Doc.Fields("X_REGION_DESC").GetPossibleValues

Doc.FIelds("X_REGION_DESC").SELECT "Great Lakes"