<?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 Macro - Opening an Excel File After Creation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-Opening-an-Excel-File-After-Creation/m-p/699978#M672290</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a macro that will export a chart to an Excel file, and I want the file to open on the screen afterwards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I am seeing everywhere around the internet is this (and I swear it's what I was using in Qlikview 8.5) but now that I am on QV 11, it does not seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Code code code all the way to here setting tmpFile as the file path then:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;msgbox tmpFile&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;obj.ExportEx tmpFile, 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set objExcel = CreateObject("Excel.Application")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;objExcel.Workbooks.Open(tmpFile)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;objExcel.Application.Visible = True&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Msgbox "Exported Successfully"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the first message box and then I can both see and open the exported file.&amp;nbsp; But the macro jumps out at that point and the file does not open as it should.&amp;nbsp; Does anyone know what I am doing wrong?&amp;nbsp; Any help is appreciated.&amp;nbsp; Thank you!&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Sep 2014 20:18:08 GMT</pubDate>
    <dc:creator>raynac</dc:creator>
    <dc:date>2014-09-25T20:18:08Z</dc:date>
    <item>
      <title>Macro - Opening an Excel File After Creation</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Opening-an-Excel-File-After-Creation/m-p/699978#M672290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a macro that will export a chart to an Excel file, and I want the file to open on the screen afterwards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I am seeing everywhere around the internet is this (and I swear it's what I was using in Qlikview 8.5) but now that I am on QV 11, it does not seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Code code code all the way to here setting tmpFile as the file path then:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;msgbox tmpFile&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;obj.ExportEx tmpFile, 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set objExcel = CreateObject("Excel.Application")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;objExcel.Workbooks.Open(tmpFile)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;objExcel.Application.Visible = True&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Msgbox "Exported Successfully"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the first message box and then I can both see and open the exported file.&amp;nbsp; But the macro jumps out at that point and the file does not open as it should.&amp;nbsp; Does anyone know what I am doing wrong?&amp;nbsp; Any help is appreciated.&amp;nbsp; Thank you!&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 20:18:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Opening-an-Excel-File-After-Creation/m-p/699978#M672290</guid>
      <dc:creator>raynac</dc:creator>
      <dc:date>2014-09-25T20:18:08Z</dc:date>
    </item>
  </channel>
</rss>

