This content has been marked as final. Show 3 replies
I wrote a macro that export tables objects to excel. I want the macro to run automatically every 2 hours. So I created a scheduled task that runs a batch file every 2 hours. The batch contains: "C:\Program Files\QlikView\Qv.exe" /VvTriggerMacro=1 "MyDashboard.qvw" and my QVW has on open trigger to run the macro.
when running the batch file by double click, everything works fine. But while running from the task scheduler the macro stack in the following line: "CREATEOBJECT("Excel.Application")".
I tried some solutions from the Internet but it's still not working.
Can someone please advise?