<?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 filter with macro before export to excel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/filter-with-macro-before-export-to-excel/m-p/717801#M677344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much for the support so far here. You are great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have so far managed using a macro to export a table. However, these data should be filtered before export it, best also via Macro. Does anyone know of a way? The approaches presented here have not yet brought me to the destination.&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My previous macro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub exportToExcel&lt;/P&gt;&lt;P&gt;&amp;nbsp; set obj = ActiveDocument.GetSheetObject("CH695_903948695")&lt;/P&gt;&lt;P&gt;&amp;nbsp; obj.ExportEx "E:\SASCHA_Export\test.xls", 5&lt;/P&gt;&lt;P&gt;&amp;nbsp; msgbox("Export successfully completed.")&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jun 2014 09:22:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-20T09:22:13Z</dc:date>
    <item>
      <title>filter with macro before export to excel</title>
      <link>https://community.qlik.com/t5/QlikView/filter-with-macro-before-export-to-excel/m-p/717801#M677344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much for the support so far here. You are great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have so far managed using a macro to export a table. However, these data should be filtered before export it, best also via Macro. Does anyone know of a way? The approaches presented here have not yet brought me to the destination.&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My previous macro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub exportToExcel&lt;/P&gt;&lt;P&gt;&amp;nbsp; set obj = ActiveDocument.GetSheetObject("CH695_903948695")&lt;/P&gt;&lt;P&gt;&amp;nbsp; obj.ExportEx "E:\SASCHA_Export\test.xls", 5&lt;/P&gt;&lt;P&gt;&amp;nbsp; msgbox("Export successfully completed.")&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 09:22:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-with-macro-before-export-to-excel/m-p/717801#M677344</guid>
      <dc:creator />
      <dc:date>2014-06-20T09:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: filter with macro before export to excel</title>
      <link>https://community.qlik.com/t5/QlikView/filter-with-macro-before-export-to-excel/m-p/717802#M677345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a Select in Field action to make the selection and add that action to the same object you added the Run Macro action. Make sure the Select in Field action is placed above the Run Macro action so that the selection is made before the macro is executed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 09:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-with-macro-before-export-to-excel/m-p/717802#M677345</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-06-20T09:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: filter with macro before export to excel</title>
      <link>https://community.qlik.com/t5/QlikView/filter-with-macro-before-export-to-excel/m-p/717803#M677346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes u're right. I already tried this. But unfortunately it doesn't work.&lt;/P&gt;&lt;P&gt;See here my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub exportToExcel&lt;/P&gt;&lt;P&gt;&amp;nbsp; ActiveDocument.Fields("# GPartner").Select "=2"&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set obj = ActiveDocument.GetSheetObject("CH695_903948695")&lt;/P&gt;&lt;P&gt;&amp;nbsp; obj.ExportEx "E:\SASCHA_Export\test.xls", 5&lt;/P&gt;&lt;P&gt;&amp;nbsp; msgbox("Export successfully completed.")&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got following errormessage =&amp;gt; Object required: 'ActiveDocument.Fields(...)'&lt;/P&gt;&lt;P&gt;"# GPartner" is the description from the exporting table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 09:53:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-with-macro-before-export-to-excel/m-p/717803#M677346</guid>
      <dc:creator />
      <dc:date>2014-06-20T09:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: filter with macro before export to excel</title>
      <link>https://community.qlik.com/t5/QlikView/filter-with-macro-before-export-to-excel/m-p/717804#M677347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to delete the equal sign:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("# GPartner").Select "2"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 10:53:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-with-macro-before-export-to-excel/m-p/717804#M677347</guid>
      <dc:creator>omyahamburg</dc:creator>
      <dc:date>2014-06-20T10:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: filter with macro before export to excel</title>
      <link>https://community.qlik.com/t5/QlikView/filter-with-macro-before-export-to-excel/m-p/717805#M677348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nothing happens except the error already described.&lt;/P&gt;&lt;P&gt;Also tried another column without the "#" and another value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 12:08:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/filter-with-macro-before-export-to-excel/m-p/717805#M677348</guid>
      <dc:creator />
      <dc:date>2014-06-20T12:08:45Z</dc:date>
    </item>
  </channel>
</rss>

