<?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 for export  a report in excel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-for-export-a-report-in-excel/m-p/722266#M259256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached a qvw where I have to export the report in excel through a Macro. Now the problem is , in the application there are three party.If user select 2 party from the listbox and then click the button 'Send to Excel' then it will export party wise two different excel means for Party PTY01 wise Sale Details in a excel and for Party PTY02 wise Sale Details in another excel. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Aug 2014 13:07:24 GMT</pubDate>
    <dc:creator>koushik_btech20</dc:creator>
    <dc:date>2014-08-21T13:07:24Z</dc:date>
    <item>
      <title>Macro for export  a report in excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-export-a-report-in-excel/m-p/722266#M259256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached a qvw where I have to export the report in excel through a Macro. Now the problem is , in the application there are three party.If user select 2 party from the listbox and then click the button 'Send to Excel' then it will export party wise two different excel means for Party PTY01 wise Sale Details in a excel and for Party PTY02 wise Sale Details in another excel. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 13:07:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-export-a-report-in-excel/m-p/722266#M259256</guid>
      <dc:creator>koushik_btech20</dc:creator>
      <dc:date>2014-08-21T13:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Macro for export  a report in excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-export-a-report-in-excel/m-p/722267#M259257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not quite understand what you intend,&lt;/P&gt;&lt;P&gt;I am attaching a model export to excel if you can serve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 13:26:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-export-a-report-in-excel/m-p/722267#M259257</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2014-08-21T13:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Macro for export  a report in excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-export-a-report-in-excel/m-p/722268#M259258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After selecting two party from the listbox&amp;nbsp; and click the button 'Send to Excel ' what will be my desired output excel file after export has been attached. Please check and revert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 14:01:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-export-a-report-in-excel/m-p/722268#M259258</guid>
      <dc:creator>koushik_btech20</dc:creator>
      <dc:date>2014-08-21T14:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Macro for export  a report in excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-export-a-report-in-excel/m-p/722269#M259259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you are your file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 15:06:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-export-a-report-in-excel/m-p/722269#M259259</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2014-08-21T15:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Macro for export  a report in excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-export-a-report-in-excel/m-p/722270#M259260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Koushik,&lt;/P&gt;&lt;P&gt;Check this thread hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="j-search-result-value" href="https://community.qlik.com/docs/DOC-4870" style="margin: 0 0 3px; font-weight: bold; font-size: 15px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;&lt;SPAN class="j-search-result-title" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;EM class="jive-hilite" style="font-family: inherit; background-color: #ffffcd;"&gt;Useful&lt;/EM&gt; Qlikview &lt;EM class="jive-hilite" style="font-family: inherit; background-color: #ffffcd;"&gt;Macros&lt;/EM&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 15:11:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-export-a-report-in-excel/m-p/722270#M259260</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-08-21T15:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Macro for export  a report in excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-export-a-report-in-excel/m-p/722271#M259261</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 code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL class="dp-c" start="1" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; list-style-position: initial; list-style-image: initial; color: #5c5c5c; margin-bottom: 1px !important; margin-left: 45px !important;"&gt;&lt;LI&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;FUNCTION ExportObjectToJpg( ObjID, fName)&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; ActiveDocument.GetSheetObject(ObjID).ExportBitmapToFile fName&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;END FUNCTION&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;SUB ExportChartByListboxValues&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; DIM fname, value, filePath, timestamp&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; filePath = ActiveDocument.Variables(&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;"vPDFFlagPath"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;).GetContent.STRING&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; timestamp = Year(Now()) &amp;amp; DatePart(&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;"m"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;, Now()) &amp;amp; DatePart(&lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;"d"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;, Now()) &amp;amp; DatePart(&lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;"h"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;, Now()) &amp;amp; DatePart(&lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;"n"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;, Now()) &amp;amp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DatePart(&lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;"s"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;, Now())&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; SET Doc = ActiveDocument&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; fieldName = &lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;"EmployeeID"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; SET Field = Doc.Fields(fieldName).GetPossibleValues&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; FOR index = &lt;SPAN class="number" style="font-weight: inherit; font-style: inherit; color: green; font-size: 9pt !important; background-color: inherit;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; to Field.Count-&lt;/SPAN&gt;&lt;SPAN class="number" style="font-weight: inherit; font-style: inherit; color: green; font-size: 9pt !important; background-color: inherit;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; Doc.Fields(fieldName).Clear&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; Doc.Fields(fieldName).SELECT Field.Item(index).Text&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; fileName = Field.Item(index).Text &amp;amp; &lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;"_"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; &amp;amp; timestamp&amp;nbsp;&amp;nbsp; &amp;amp; &lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;".jpg"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;'Field.Item(index).Text &amp;amp; DateValue&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; ExportObjectToJpg &lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;"CH420"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;, filePath &amp;amp; fileName&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; NEXT&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; Doc.Fields(fieldName).Clear&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;END SUB&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 15:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-export-a-report-in-excel/m-p/722271#M259261</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-08-21T15:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Macro for export  a report in excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-for-export-a-report-in-excel/m-p/722272#M259262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The macro you have written in my app is not working properly.I want party wise break up into two sheet after selecting two party from the listbox and clicking on the button.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 04:26:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-for-export-a-report-in-excel/m-p/722272#M259262</guid>
      <dc:creator>koushik_btech20</dc:creator>
      <dc:date>2014-08-22T04:26:15Z</dc:date>
    </item>
  </channel>
</rss>

