<?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: Formatting excel spreadsheets via QV macro and Scheduled task in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Formatting-excel-spreadsheets-via-QV-macro-and-Scheduled-task/m-p/498135#M686449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob, I am not familiar with Macro's writing. But I will give idea how to execute the batch file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create QVW with Macro to create excel file with multiple qv objects.&lt;/P&gt;&lt;P&gt;2. Setup a Task ok QEMC for reload and call the Macro trigger after post Reload.&lt;/P&gt;&lt;P&gt;3. Create the batch file to format the excel file or email subjects&lt;/P&gt;&lt;P&gt;4. Call the batch file trough external programs on QEMC after successful reload of QV Task.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Dec 2013 21:39:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-18T21:39:59Z</dc:date>
    <item>
      <title>Formatting excel spreadsheets via QV macro and Scheduled task</title>
      <link>https://community.qlik.com/t5/QlikView/Formatting-excel-spreadsheets-via-QV-macro-and-Scheduled-task/m-p/498134#M686448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to format an excel sheet via a QV macro that is run via a scheduled task?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A bit of background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the help of this extremely helpful blog (link below) I've created a macro that takes several QV objects and places them into different sheets in an Excel spreadsheet, then applies some formatting and emails the spreadsheet to some recipients.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use a windows scheduled task to automate the process, I get the task to call a batch file.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The scheduled task will run fine when the user is logged in, but not when no one is logged in.&amp;nbsp; I think this is to do with the macro using the "GUI" while formatting the spreadsheet.&amp;nbsp; All of the scheduled task settings about running when the user is not logged on are set correctly, I have other AV apps generating XL dumps and PDF's on schedule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;A href="http://www.qlikblog.at/971/"&gt;http://www.qlikblog.at/971/&amp;nbsp; &lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 23:15:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formatting-excel-spreadsheets-via-QV-macro-and-Scheduled-task/m-p/498134#M686448</guid>
      <dc:creator />
      <dc:date>2013-12-17T23:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting excel spreadsheets via QV macro and Scheduled task</title>
      <link>https://community.qlik.com/t5/QlikView/Formatting-excel-spreadsheets-via-QV-macro-and-Scheduled-task/m-p/498135#M686449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob, I am not familiar with Macro's writing. But I will give idea how to execute the batch file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create QVW with Macro to create excel file with multiple qv objects.&lt;/P&gt;&lt;P&gt;2. Setup a Task ok QEMC for reload and call the Macro trigger after post Reload.&lt;/P&gt;&lt;P&gt;3. Create the batch file to format the excel file or email subjects&lt;/P&gt;&lt;P&gt;4. Call the batch file trough external programs on QEMC after successful reload of QV Task.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 21:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formatting-excel-spreadsheets-via-QV-macro-and-Scheduled-task/m-p/498135#M686449</guid>
      <dc:creator />
      <dc:date>2013-12-18T21:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting excel spreadsheets via QV macro and Scheduled task</title>
      <link>https://community.qlik.com/t5/QlikView/Formatting-excel-spreadsheets-via-QV-macro-and-Scheduled-task/m-p/498136#M686450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"&gt;Thanks Darth,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"&gt;Unfortunately the client is running QV SBE server with no publisher, Windows scheduled tasks are all I've got to work with.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"&gt;I found a solution to the problem was to run excel "silently", ie not open the GUI,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"&gt;Create this directory:&lt;/SPAN&gt;&lt;SPAN style="color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"&gt;c:\windows\syswow64\config\systemprofile\desktop&amp;nbsp;&amp;nbsp; ( This may not be necessary but it was one of the trhee changes I made)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"&gt;Then set the windows scheduled task to run with the highest privileges. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"&gt;For me it basically boiled down to a Windows / Excel problem, QV was behaving as expected.&amp;nbsp; There was a bit more detail in this thread,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"&gt;&lt;A class="loading" href="http://social.msdn.microsoft.com/Forums/office/en-US/ac2549f5-fc1e-494d-9015-70cb31d3aeb2/opening-excel-workbook-fails-when-run-from-scheduled-task-on-windows-server-2008-rw?forum=exceldev"&gt;http://social.msdn.microsoft.com/Forums/office/en-US/ac2549f5-fc1e-494d-9015-70cb31d3aeb2/opening-excel-workbook-fails-when-run-from-scheduled-task-on-windows-server-2008-rw?forum=exceldev&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 00:28:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formatting-excel-spreadsheets-via-QV-macro-and-Scheduled-task/m-p/498136#M686450</guid>
      <dc:creator />
      <dc:date>2013-12-19T00:28:25Z</dc:date>
    </item>
  </channel>
</rss>

