<?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: Export in excel with script module. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-in-excel-with-script-module/m-p/607773#M681192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Mar 2014 12:36:44 GMT</pubDate>
    <dc:creator>geogou1973</dc:creator>
    <dc:date>2014-03-21T12:36:44Z</dc:date>
    <item>
      <title>Export in excel with script module.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-in-excel-with-script-module/m-p/607771#M681190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue with an export i'm trying to do and does not work.&lt;/P&gt;&lt;P&gt;I have a script module in a trigger on post reload action that exports an excel file from a chart.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The script is :&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sub ExportFiles&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Pathcorp="c:\sales\"&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Set corp = ActiveDocument.GetSheetObject("CH01")&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If store_id="101" then&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;corp.ExportBiff Pathcorp &amp;amp; "Sales.xls"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;End if&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;End Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;The store_id is field.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;How can i export only the data for the store "101"&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Can anyone help me ?&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Thank you in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 12:16:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-in-excel-with-script-module/m-p/607771#M681190</guid>
      <dc:creator>geogou1973</dc:creator>
      <dc:date>2014-03-21T12:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Export in excel with script module.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-in-excel-with-script-module/m-p/607772#M681191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace your if with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;ActiveDocument.Fields("store_id").Select "101" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Joerg&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 12:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-in-excel-with-script-module/m-p/607772#M681191</guid>
      <dc:creator>omyahamburg</dc:creator>
      <dc:date>2014-03-21T12:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Export in excel with script module.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-in-excel-with-script-module/m-p/607773#M681192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 12:36:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-in-excel-with-script-module/m-p/607773#M681192</guid>
      <dc:creator>geogou1973</dc:creator>
      <dc:date>2014-03-21T12:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Export in excel with script module.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-in-excel-with-script-module/m-p/607774#M681193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;Create Variables from UI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. vPathcorp ---&amp;gt; Your desired path to save the exported excel file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. vstore_id ---&amp;gt; Your store selection (should always one at a time)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Sub ExportFiles&lt;/P&gt;
&lt;P&gt;Set Pathcorp = ActiveDocument.Variables("vPathcorp")&lt;BR /&gt;Set store_id = ActiveDocument.Variables("vstore_id")&lt;/P&gt;
&lt;P&gt;'Pathcorp="c:\sales\"&lt;/P&gt;
&lt;P&gt;Set corp = ActiveDocument.GetSheetObject("CH01")&lt;/P&gt;
&lt;P&gt;If store_id.GetContent.String="101" then&lt;/P&gt;
&lt;P&gt;corp.ExportBiff Pathcorp.GetContent.String &amp;amp; "Sales.xls"&lt;/P&gt;
&lt;P&gt;End if&lt;/P&gt;
&lt;P&gt;End Sub&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 12:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-in-excel-with-script-module/m-p/607774#M681193</guid>
      <dc:creator />
      <dc:date>2014-03-21T12:38:01Z</dc:date>
    </item>
  </channel>
</rss>

