<?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 Export Macro doesn't work when linked to a button in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-Macro-doesn-t-work-when-linked-to-a-button/m-p/207494#M63229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running Qlikview 9 SR5 (64 Bit)&lt;/P&gt;&lt;P&gt;I have created a macro to export a table to an excel file into the file system. When I hit the test button in the editor the macro runs fine and the file is created in the file system. However when I try to run the same macro by hitting a button on the qlikview screen nothing works. I don't get any messages to indicate where it may be failing. the button has Action=Run Macro with the correct code as macro.&lt;/P&gt;&lt;P&gt;I have set the macro security to allow system access plus its local security as system access. Plus I set the enable condition=1 in case that was the problem.&lt;/P&gt;&lt;P&gt;the macro is as follows;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&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;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;STRONG&gt;sub Exports&lt;BR /&gt; set Table = ActiveDocument.GetSheetObject("TB01")&lt;BR /&gt; rem Clear all selections that was made&lt;BR /&gt; ActiveDocument.ClearAll false&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;rem Get data in TB01&lt;BR /&gt; ActiveDocument.Fields("WO Status").Select("In Progress")&lt;BR /&gt; set obj = ActiveDocument.GetSheetObject("TB01")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;rem Save data from table in file.&lt;BR /&gt; obj.ExportBiff "d:\TimeSheetWO\Work_Order_Dump.xls"&lt;BR /&gt;End Sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have tried running the macro from the Qlikview program and using the IE plugin but the result is the same. It doesn't appear to run. I am new to Qlikview so I apologise if my post is not clear enough.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Dec 2010 00:50:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-01T00:50:47Z</dc:date>
    <item>
      <title>Export Macro doesn't work when linked to a button</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Macro-doesn-t-work-when-linked-to-a-button/m-p/207494#M63229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running Qlikview 9 SR5 (64 Bit)&lt;/P&gt;&lt;P&gt;I have created a macro to export a table to an excel file into the file system. When I hit the test button in the editor the macro runs fine and the file is created in the file system. However when I try to run the same macro by hitting a button on the qlikview screen nothing works. I don't get any messages to indicate where it may be failing. the button has Action=Run Macro with the correct code as macro.&lt;/P&gt;&lt;P&gt;I have set the macro security to allow system access plus its local security as system access. Plus I set the enable condition=1 in case that was the problem.&lt;/P&gt;&lt;P&gt;the macro is as follows;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&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;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;STRONG&gt;sub Exports&lt;BR /&gt; set Table = ActiveDocument.GetSheetObject("TB01")&lt;BR /&gt; rem Clear all selections that was made&lt;BR /&gt; ActiveDocument.ClearAll false&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;rem Get data in TB01&lt;BR /&gt; ActiveDocument.Fields("WO Status").Select("In Progress")&lt;BR /&gt; set obj = ActiveDocument.GetSheetObject("TB01")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;rem Save data from table in file.&lt;BR /&gt; obj.ExportBiff "d:\TimeSheetWO\Work_Order_Dump.xls"&lt;BR /&gt;End Sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have tried running the macro from the Qlikview program and using the IE plugin but the result is the same. It doesn't appear to run. I am new to Qlikview so I apologise if my post is not clear enough.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 00:50:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Macro-doesn-t-work-when-linked-to-a-button/m-p/207494#M63229</guid>
      <dc:creator />
      <dc:date>2010-12-01T00:50:47Z</dc:date>
    </item>
  </channel>
</rss>

