<?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 Re: Issue running macro in template through task scheduler in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-running-macro-in-template-through-task-scheduler/m-p/530424#M198284</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Georges, sorry for the slow response. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad that worked for you! I will get out and try it on my site this week and keep my fingers crossed! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry but I can't give you much on the workings of this. It is certainly excel related and it was your post that made me think it might be (i.e. I wasn't the only person with the issue). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the info I gave you on a microsoft forum and thought it was worth a try (link below)! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://social.technet.microsoft.com/Forums/windowsserver/en-US/aede572b-4c1f-4729-bc9d-899fed5fad02/run-powershell-script-as-scheduled-task-that-uses-excel-com-object?forum=winserverpowershell" title="http://social.technet.microsoft.com/Forums/windowsserver/en-US/aede572b-4c1f-4729-bc9d-899fed5fad02/run-powershell-script-as-scheduled-task-that-uses-excel-com-object?forum=winserverpowershell"&gt;Run Powershell script as Scheduled task, that uses Excel COM object&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jun 2014 21:30:08 GMT</pubDate>
    <dc:creator>canoebi99</dc:creator>
    <dc:date>2014-06-02T21:30:08Z</dc:date>
    <item>
      <title>Issue running macro in template through task scheduler</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-running-macro-in-template-through-task-scheduler/m-p/530416#M198276</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 have a macro in a template that basically loops through a field on a chart and then copies the chart to an excel file and saves the file down for each loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The macro works fine when I run it manually from a button. It also works fine if I set it to run through a bat file and double click on the bat file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I get task scheduler to run the bat file the process fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am guessing it might be something to do with the part where it copies the chart to excel but I have no idea what might be stopping it. It is probably stopping at the set xlapp part? The same user can run a similar process fine through task scheduler but only writing out a csv file not copying a chart to excel like this process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bat file definitely starts running and then QV.exe just seems to sit there as if something in the macro is being blocked from happening. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The macro code is below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB VBBxlsExport&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DIM varDate&lt;/P&gt;&lt;P&gt;DIM d&lt;/P&gt;&lt;P&gt;DIM xlApp&lt;/P&gt;&lt;P&gt;DIM xlBook&lt;/P&gt;&lt;P&gt;DIM xlSheet&lt;/P&gt;&lt;P&gt;DIM strSheetName&lt;/P&gt;&lt;P&gt;DIM FieldName&lt;/P&gt;&lt;P&gt;DIM ff&lt;/P&gt;&lt;P&gt;DIM v&lt;/P&gt;&lt;P&gt;DIM varAutomation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET v = ActiveDocument.Variables("vTriggerMacro")&lt;/P&gt;&lt;P&gt;&amp;nbsp; varAutomation = v.GetContent.STRING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'SET d = ActiveDocument.Variables("vDate")&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'varDate = d.GetContent.STRING&lt;/P&gt;&lt;P&gt;SET Doc = ActiveDocument&lt;/P&gt;&lt;P&gt;Doc.FIelds("DartRepairs.VolumeBuilder").SELECT "Yes"&lt;/P&gt;&lt;P&gt;SET ff = ActiveDocument.Variables("vFieldName2")&lt;/P&gt;&lt;P&gt;&amp;nbsp; FieldName = ff.GetContent.STRING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET Field = Doc.Fields(FieldName).GetPossibleValues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR i=0 to Field.Count-1&lt;/P&gt;&lt;P&gt;&amp;nbsp; strFilename = Field.Item(i).Text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SET xlApp = CREATEOBJECT("Excel.Application")&lt;/P&gt;&lt;P&gt;&amp;nbsp; xlApp.Visible = FALSE&lt;/P&gt;&lt;P&gt;SET xlBook = xlApp.Workbooks.Add&lt;/P&gt;&lt;P&gt;SET xlSheet = xlBook.Worksheets("Sheet1")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; XLSFile = "c:\temp\"&amp;amp;strFilename&amp;amp;".xls" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Doc.Fields(FieldName).Clear&lt;/P&gt;&lt;P&gt;&amp;nbsp; Doc.FIelds("DartRepairs.VolumeBuilder").SELECT "Yes"&lt;/P&gt;&lt;P&gt;&amp;nbsp; Doc.FIelds(FieldName).SELECT Field.Item(i).Text&lt;/P&gt;&lt;P&gt;&amp;nbsp; Doc.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;&amp;nbsp; Doc.GetSheetObject("CH25").CopyTableToClipBoard TRUE&lt;/P&gt;&lt;P&gt;&amp;nbsp; xlApp.ActiveSheet.Paste&lt;/P&gt;&lt;P&gt;&amp;nbsp; xlApp.Worksheets(xlApp.ActiveSheet.Index).Cells.EntireColumn.AutoFit&lt;/P&gt;&lt;P&gt;&amp;nbsp; xlApp.Worksheets(xlApp.ActiveSheet.Index).Cells.EntireRow.AutoFit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'strSheetName = Field.Item(i).Text&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'xlApp.ActiveSheet.Name = strSheetName&lt;/P&gt;&lt;P&gt;xlApp.DisplayAlerts = FALSE&lt;/P&gt;&lt;P&gt;xlBook.SaveAs XLSFile, 56&lt;/P&gt;&lt;P&gt;xlBook.Close &lt;/P&gt;&lt;P&gt;XLSFile = ""&lt;/P&gt;&lt;P&gt;'end if&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;P&gt;Doc.Fields(FieldName).Clear&lt;/P&gt;&lt;P&gt;Doc.FIelds("DartRepairs.VolumeBuilder").Clear&lt;/P&gt;&lt;P&gt;'msgbox "got to end of xl export"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas? I am really stuck with this one! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 01:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-running-macro-in-template-through-task-scheduler/m-p/530416#M198276</guid>
      <dc:creator>canoebi99</dc:creator>
      <dc:date>2013-12-05T01:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Issue running macro in template through task scheduler</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-running-macro-in-template-through-task-scheduler/m-p/530417#M198277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wondering if you have found a solution to your post because &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have a similar problem with a task scheduler and a similar macro.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To analyse this I create a subroutine to log each step of the macro execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I finally traced the problem in the instruction &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;xlBook.SaveAs. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I working right now to fix this...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any update from your side?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Georges&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 10:29:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-running-macro-in-template-through-task-scheduler/m-p/530417#M198277</guid>
      <dc:creator>georges_galvan</dc:creator>
      <dc:date>2014-05-28T10:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issue running macro in template through task scheduler</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-running-macro-in-template-through-task-scheduler/m-p/530418#M198278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has the user-account on which the task runs appropriate access-rights on the path? I assume if you run this script manually it will be work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 10:48:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-running-macro-in-template-through-task-scheduler/m-p/530418#M198278</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-05-28T10:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Issue running macro in template through task scheduler</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-running-macro-in-template-through-task-scheduler/m-p/530419#M198279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, user account has access to the path. &lt;/P&gt;&lt;P&gt;In fact, like in the post from Ben Robinson, the task scheduler launch a .bat and in this case the Macro stops in the SaveAs command (in the meantime, the macro has create and update the log file in the same directory). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When this .bat is launched manually, everything works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created another task in the task scheduler with my user account, and this task -launched with the user account having the problem- works fine !&amp;nbsp; &lt;/P&gt;&lt;P&gt;Therefore, it seems something related to an authorisation/rights issue that concerns the saveAs of the Excel application object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Georges&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 13:35:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-running-macro-in-template-through-task-scheduler/m-p/530419#M198279</guid>
      <dc:creator>georges_galvan</dc:creator>
      <dc:date>2014-05-28T13:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issue running macro in template through task scheduler</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-running-macro-in-template-through-task-scheduler/m-p/530420#M198280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably there are two reasons. First: runs a task with a certain user-account it won't be have the same access/security rights how the user has if he did it manually. I'm sure these settings could be changed but I don't know how. Second: such task run as a kind of background-services and sometimes the programs needed more visibility or access on any *.dll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore I use a mix-up from task with my user and admin-user and visibilty for the applications. You could try to change xlApp.Visible = FALSE into TRUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe it could be an alternative if you don't create a new file else you take a copy from an existent file or used the built-in vbs-functionalities to exporting objects from qv and make your changes afterwards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 14:14:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-running-macro-in-template-through-task-scheduler/m-p/530420#M198280</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-05-28T14:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Issue running macro in template through task scheduler</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-running-macro-in-template-through-task-scheduler/m-p/530421#M198281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Georges, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies for the slow response. I never did find an answer to this and I actually ended up recoding it and pushing it out as a csv file without any formatting. I think my issues where to do with the fact that the method I was using can't be run as a background process which is what happens when running a scheduled task. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interestingly enough though I have come across a similar issue with a completely different piece of software that is converting a pdf to excel and I have debugged this down to the point of also failing at the save of the excel file (it all works perfectly fine when run manually). I still haven't resolved this one! I am sure it will be related to rights and the fact that when running as a scheduled task (and hence background process) things aren't quite the same as running as the actual user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I ever do get an answer to this I will post back. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ben &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 02:04:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-running-macro-in-template-through-task-scheduler/m-p/530421#M198281</guid>
      <dc:creator>canoebi99</dc:creator>
      <dc:date>2014-05-30T02:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Issue running macro in template through task scheduler</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-running-macro-in-template-through-task-scheduler/m-p/530422#M198282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again Georges, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was just researching this and may have stumbled across a possible solution ... :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't had chance to give it a go so don't know if it will work but I will try it when I get onsite..... if you get chance to try it first let me know how you get on and if it makes any difference!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; margin-bottom: 1em; color: #2a2a2a; font-size: 14px;"&gt;You have to create a folder (or two folders on a 64bit-windows):&lt;/P&gt;&lt;P style="font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; margin-bottom: 1em; color: #2a2a2a; font-size: 14px;"&gt;(32Bit, always)&lt;/P&gt;&lt;P style="font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; margin-bottom: 1em; color: #2a2a2a; font-size: 14px;"&gt;C:\Windows\System32\config\systemprofile\Dektop&lt;/P&gt;&lt;P style="font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; margin-bottom: 1em; color: #2a2a2a; font-size: 14px;"&gt;(64Bit create this as well as the above)&lt;/P&gt;&lt;P style="font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; margin-bottom: 1em; color: #2a2a2a; font-size: 14px;"&gt;C:\Windows\SysWOW64\config\systemprofile\Desktop&lt;/P&gt;&lt;P&gt;That's it ... once you have created those folders retry the scheduled task. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll post back when I get a chance to give it a go. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 02:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-running-macro-in-template-through-task-scheduler/m-p/530422#M198282</guid>
      <dc:creator>canoebi99</dc:creator>
      <dc:date>2014-05-30T02:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issue running macro in template through task scheduler</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-running-macro-in-template-through-task-scheduler/m-p/530423#M198283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You got it... your fix works OK.!! &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks you very much!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just for the fun to understand, have you got an explanation? &lt;/P&gt;&lt;P&gt;So, it looks something related to the Excel behaviour in the background...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Georges&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 10:00:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-running-macro-in-template-through-task-scheduler/m-p/530423#M198283</guid>
      <dc:creator>georges_galvan</dc:creator>
      <dc:date>2014-05-30T10:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Issue running macro in template through task scheduler</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-running-macro-in-template-through-task-scheduler/m-p/530424#M198284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Georges, sorry for the slow response. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad that worked for you! I will get out and try it on my site this week and keep my fingers crossed! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry but I can't give you much on the workings of this. It is certainly excel related and it was your post that made me think it might be (i.e. I wasn't the only person with the issue). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the info I gave you on a microsoft forum and thought it was worth a try (link below)! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://social.technet.microsoft.com/Forums/windowsserver/en-US/aede572b-4c1f-4729-bc9d-899fed5fad02/run-powershell-script-as-scheduled-task-that-uses-excel-com-object?forum=winserverpowershell" title="http://social.technet.microsoft.com/Forums/windowsserver/en-US/aede572b-4c1f-4729-bc9d-899fed5fad02/run-powershell-script-as-scheduled-task-that-uses-excel-com-object?forum=winserverpowershell"&gt;Run Powershell script as Scheduled task, that uses Excel COM object&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 21:30:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-running-macro-in-template-through-task-scheduler/m-p/530424#M198284</guid>
      <dc:creator>canoebi99</dc:creator>
      <dc:date>2014-06-02T21:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Issue running macro in template through task scheduler</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-running-macro-in-template-through-task-scheduler/m-p/530425#M198285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will wok for you also. &lt;/P&gt;&lt;P&gt;(Actually it looks like a magic trick! )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Georges&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 15:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-running-macro-in-template-through-task-scheduler/m-p/530425#M198285</guid>
      <dc:creator>georges_galvan</dc:creator>
      <dc:date>2014-06-04T15:48:33Z</dc:date>
    </item>
  </channel>
</rss>

