Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
Not applicable

Running export to excel macro from task scheduler

Hi All,

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?

Thanks!

3 Replies
Not applicable

Re: Running export to excel macro from task scheduler

hi Michal,

i had a similar problem with this recently for me it was an issue with Microsoft excel not being installed on the environment I was working within (on one of my QV servers). Do you have the software installed?

Not applicable

Re: Running export to excel macro from task scheduler

Yes we do..

Re: Running export to excel macro from task scheduler

It's a security issue. Among other things like access to the file-system, proper settings on modul security needs the batch-user rights to create new objects and/or accessed to external files and execution from files and exports (user settings --> security).

- Marcus

Community Browser