<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Running export to excel macro from task scheduler in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Running-export-to-excel-macro-from-task-scheduler/m-p/726159#M672286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote a macro that export&amp;nbsp; 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: &lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;"C:\Program Files\QlikView\Qv.exe" /VvTriggerMacro=1 "MyDashboard.qvw"&amp;nbsp; and my QVW has on open trigger to run the macro. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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: "&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;CREATEOBJECT("Excel.Application")".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried some solutions from the Internet but it's still not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please advise?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="Mu SP" style="margin-bottom: 6px;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Sep 2014 13:57:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-07T13:57:00Z</dc:date>
    <item>
      <title>Running export to excel macro from task scheduler</title>
      <link>https://community.qlik.com/t5/QlikView/Running-export-to-excel-macro-from-task-scheduler/m-p/726159#M672286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote a macro that export&amp;nbsp; 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: &lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;"C:\Program Files\QlikView\Qv.exe" /VvTriggerMacro=1 "MyDashboard.qvw"&amp;nbsp; and my QVW has on open trigger to run the macro. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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: "&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;CREATEOBJECT("Excel.Application")".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried some solutions from the Internet but it's still not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please advise?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="Mu SP" style="margin-bottom: 6px;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Sep 2014 13:57:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-export-to-excel-macro-from-task-scheduler/m-p/726159#M672286</guid>
      <dc:creator />
      <dc:date>2014-09-07T13:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Running export to excel macro from task scheduler</title>
      <link>https://community.qlik.com/t5/QlikView/Running-export-to-excel-macro-from-task-scheduler/m-p/726160#M672287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Michal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Sep 2014 16:57:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-export-to-excel-macro-from-task-scheduler/m-p/726160#M672287</guid>
      <dc:creator />
      <dc:date>2014-09-07T16:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Running export to excel macro from task scheduler</title>
      <link>https://community.qlik.com/t5/QlikView/Running-export-to-excel-macro-from-task-scheduler/m-p/726161#M672288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes we do..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 08:03:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-export-to-excel-macro-from-task-scheduler/m-p/726161#M672288</guid>
      <dc:creator />
      <dc:date>2014-09-08T08:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Running export to excel macro from task scheduler</title>
      <link>https://community.qlik.com/t5/QlikView/Running-export-to-excel-macro-from-task-scheduler/m-p/726162#M672289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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 --&amp;gt; security).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Sep 2014 12:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-export-to-excel-macro-from-task-scheduler/m-p/726162#M672289</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-09-08T12:01:49Z</dc:date>
    </item>
  </channel>
</rss>

