<?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 Importing a macro into an Excel export in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Importing-a-macro-into-an-Excel-export/m-p/289158#M107426</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Figured it out.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;objExcelWorkbook.Application.VBE.ActiveVBProject.VBComponents.Import "C:\macro.bas"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;objExcelWorkbook.Application.Run "macroname"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got that pretty early on, but I kept thinking it wasn't right because my macro settings weren't correct in Excel.&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;﻿See step 7 in the link below for the settings that fixed it for me.&lt;/P&gt;&lt;P&gt;﻿&lt;A href="http://support.microsoft.com/kb/219905"&gt;http://support.microsoft.com/kb/219905&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Nov 2011 20:37:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-09T20:37:38Z</dc:date>
    <item>
      <title>Importing a macro into an Excel export</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-a-macro-into-an-Excel-export/m-p/289157#M107425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using Stefan Walther's script from &lt;A href="http://www.qlikblog.at/971/qliktip-32-exporting-multiple-objects-single-excel-document/"&gt;http://www.qlikblog.at/971/qliktip-32-exporting-multiple-objects-single-excel-document/&lt;/A&gt; to export a chart into an Excel document (because the built-in export cuts off my cell values at 255 characters).&amp;nbsp; Once I get it into Excel I have a separate Excel macro that I import and run in order to format the document so that it is more presentable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if anyone had any code that would automatically import and run the Excel macro within the newly created document so that I can just distribute the QV document without having to show end-users how to work with Excel macros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can assume that the Excel macro is stored in C:\macro.bas and that I know nothing about VBScript because that wouldn't be too far from the truth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 20:26:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-a-macro-into-an-Excel-export/m-p/289157#M107425</guid>
      <dc:creator />
      <dc:date>2011-11-01T20:26:03Z</dc:date>
    </item>
    <item>
      <title>Importing a macro into an Excel export</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-a-macro-into-an-Excel-export/m-p/289158#M107426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Figured it out.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;objExcelWorkbook.Application.VBE.ActiveVBProject.VBComponents.Import "C:\macro.bas"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;objExcelWorkbook.Application.Run "macroname"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got that pretty early on, but I kept thinking it wasn't right because my macro settings weren't correct in Excel.&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;﻿See step 7 in the link below for the settings that fixed it for me.&lt;/P&gt;&lt;P&gt;﻿&lt;A href="http://support.microsoft.com/kb/219905"&gt;http://support.microsoft.com/kb/219905&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 20:37:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-a-macro-into-an-Excel-export/m-p/289158#M107426</guid>
      <dc:creator />
      <dc:date>2011-11-09T20:37:38Z</dc:date>
    </item>
  </channel>
</rss>

