<?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: Launch an Excel_file and its VBA macro from QlikView? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Launch-an-Excel-file-and-its-VBA-macro-from-QlikView/m-p/970188#M332258</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks!&lt;/P&gt;&lt;P&gt;That might indeed make the whole thing a lot easier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Oct 2015 10:48:46 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2015-10-27T10:48:46Z</dc:date>
    <item>
      <title>Launch an Excel_file and its VBA macro from QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/Launch-an-Excel-file-and-its-VBA-macro-from-QlikView/m-p/970186#M332256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently working to implement a multiple-tier system of Excel_files and a presentation for a daily meeting.&lt;/P&gt;&lt;P&gt;It all works fine so far. The order of execution is this:&lt;/P&gt;&lt;P&gt;- The macro in the main Excel file opens all other files (from which data is drawn via formulas)&lt;/P&gt;&lt;P&gt;- The main Excel file is saved&lt;/P&gt;&lt;P&gt;- All other files are closed&lt;/P&gt;&lt;P&gt;(in the main Excel file, there are a number of charts based on the data)&lt;/P&gt;&lt;P&gt;- The macro then opens a ppt presentation, updates all links and closes the Excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The point where I realize the limits of Excel is the charts. Charts created in QlikView are simply nicer and there are some advanced possibilities which are not feasible in Excel.&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; on the other hand, using QlikView to generate the charts would mean one extra program and the one running that Excel macro would need the ability to manually start the QlikView_app.&lt;/P&gt;&lt;P&gt;=&amp;gt; To keep that as simple as possible, what I'd like to consider is the QlikView_app opening that Excel file, running the macro inside and then just generating the charts once the macro has finished (data is updated) and finally exporting those charts in ppt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that possible? Can QlikView somehow open an Excel file and trigger a VBA macro?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 10:26:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Launch-an-Excel-file-and-its-VBA-macro-from-QlikView/m-p/970186#M332256</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-10-27T10:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Launch an Excel_file and its VBA macro from QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/Launch-an-Excel-file-and-its-VBA-macro-from-QlikView/m-p/970187#M332257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could easily use vbs to open your macro. This here is a way which I use productive:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QVW with execute-statement:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SET vCSCRIPT = 'c:\windows\system32\cscript.exe';&lt;/P&gt;&lt;P&gt;EXECUTE $(vCSCRIPT) "D:\YourExcelStartScript.vbs";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VBS with open excel-statement:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Dim fso, file&lt;/P&gt;&lt;P&gt;Set fso = CreateObject("Scripting.FileSystemObject")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set file = fso.OpenTextFile("D:\TaskParameter.txt", 2)&lt;/P&gt;&lt;P&gt;file.WriteLine "run"&lt;/P&gt;&lt;P&gt;file.Close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim objExcel&lt;/P&gt;&lt;P&gt;Set objExcel = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objExcel.Application.DisplayAlerts = false&lt;/P&gt;&lt;P&gt;objExcel.Application.Visible = true&lt;/P&gt;&lt;P&gt;objExcel.Application.Workbooks.Open "D:\YourFolder\YourExcel.xls", "3"&lt;/P&gt;&lt;P&gt;objExcel.Application.DisplayAlerts = true&lt;/P&gt;&lt;P&gt;objExcel.Application.Quit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set file = fso.OpenTextFile("D:\TaskParameter.txt", 2)&lt;/P&gt;&lt;P&gt;file.WriteLine "stop"&lt;/P&gt;&lt;P&gt;file.Close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And within the excel is an OnOpen-Trigger which reads the parameter and started by "run" your routines. The parameter are for the purpose to be able to open your excel without the macro-execution if they are not triggered by a task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 10:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Launch-an-Excel-file-and-its-VBA-macro-from-QlikView/m-p/970187#M332257</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-10-27T10:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Launch an Excel_file and its VBA macro from QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/Launch-an-Excel-file-and-its-VBA-macro-from-QlikView/m-p/970188#M332258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks!&lt;/P&gt;&lt;P&gt;That might indeed make the whole thing a lot easier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 10:48:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Launch-an-Excel-file-and-its-VBA-macro-from-QlikView/m-p/970188#M332258</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-10-27T10:48:46Z</dc:date>
    </item>
  </channel>
</rss>

