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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Automate daily macro

Hi

I would like to keep open a Qlik desktop so the below can be automated to run at 08:00 every day.

Is this possible please ?

Sub ExportToFile

vStamp = ActiveDocument.Evaluate("TimeStamp(Now(),'YYYYMMDDhhmm')")

vToday = ActiveDocument.Evaluate("TimeStamp(Now(),'YYYYMMDD')")

set sObject = ActiveDocument.GetSheetObject("SoOpen")

sObject.Export "\\Upload\OpenSalesOrders_" & vStamp & ".csv", ", "

End Sub

Labels (1)
1 Reply
Anonymous
Not applicable
Author

You can use a windows scheduled task to run the document from the command line where ** is you document path e.g.;

C:\Program Files\QlikView\qv.exe *C:\Users\gwilson\Documents\Qlik\DateTime.qvw*

Then in the Document Properties of your document you can use an OnOpen Trigger to run the macro