<?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 to excel macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/export-to-excel-macro/m-p/921791#M319296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try the same code with Aligned...and give the Macro Name in the Actions Tab.. Here &lt;STRONG&gt;ExcelExport&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14394542803228268 jive_text_macro" jivemacro_uid="_14394542803228268"&gt;
&lt;P&gt;FUNCTION ExcelExport() &lt;/P&gt;
&lt;P&gt;set obj = ActiveDocument.GetSheetObject( "TB01") &lt;/P&gt;
&lt;P&gt;w = obj.GetColumnCount &lt;/P&gt;
&lt;P&gt;if obj.GetRowCount&amp;gt;1001 then &lt;/P&gt;
&lt;P&gt;&amp;nbsp; h=1000 &lt;/P&gt;
&lt;P&gt;else h=obj.GetRowCount &lt;/P&gt;
&lt;P&gt;end if &lt;/P&gt;
&lt;P&gt;Set objExcel = CreateObject("Excel.Application") &lt;/P&gt;
&lt;P&gt;&amp;nbsp; objExcel.Workbooks.Add &lt;/P&gt;
&lt;P&gt;&amp;nbsp; objExcel.Worksheets(1).select()&lt;/P&gt;
&lt;P&gt;&amp;nbsp; objExcel.Visible = True &lt;/P&gt;
&lt;P&gt;&amp;nbsp; set CellMatrix = obj.GetCells2(0,0,w,h) &lt;/P&gt;
&lt;P&gt;&amp;nbsp; column = 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; for cc=0 to w-1 &lt;/P&gt;
&lt;P&gt;&amp;nbsp; objExcel.Cells(1,column).Value = CellMatrix(0)(cc).Text &lt;/P&gt;
&lt;P&gt;&amp;nbsp; objExcel.Cells(1,column).EntireRow.Font.Bold = True&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; column = column +1 &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; next &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; c = 1 &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; r =2 &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; for RowIter=1 to h-1 &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; for ColIter=0 to w-1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; objExcel.Cells(r,c).Value = CellMatrix(RowIter)(ColIter).Text &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; c = c +1 &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; r = r+1 &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; c = 1 &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; next &lt;/P&gt;
&lt;P&gt; END FUNCTION&amp;nbsp; &lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to do the Below Settings in Macro Module&lt;/P&gt;&lt;P&gt;Requested Module Security -&amp;gt; System Access&lt;BR /&gt;Current Local Security -&amp;gt; Allow System Access&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find the attached for your reference&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Aug 2015 08:26:37 GMT</pubDate>
    <dc:creator>settu_periasamy</dc:creator>
    <dc:date>2015-08-13T08:26:37Z</dc:date>
    <item>
      <title>export to excel macro</title>
      <link>https://community.qlik.com/t5/QlikView/export-to-excel-macro/m-p/921790#M319295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Jagan ,&lt;/P&gt;&lt;P&gt;as per discuss plz look into this marco ,its not exporting&amp;nbsp; table value in excel &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION ExcelExport("TB01") set obj = ActiveDocument.GetSheetObject( "TB01") w = obj.GetColumnCount &lt;/P&gt;&lt;P&gt;if obj.GetRowCount&amp;gt;1001 then h=1000 else h=obj.GetRowCount end if Set objExcel = CreateObject("Excel.Application") objExcel.Workbooks.Add objExcel.Worksheets(1).select()&lt;/P&gt;&lt;P&gt; objExcel.Visible = True set CellMatrix = obj.GetCells2(0,0,w,h) column = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; for cc=0 to w-1 objExcel.Cells(1,column).Value = CellMatrix(0)(cc).Text objExcel.Cells(1,column).EntireRow.Font.Bold = True&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; column = column +1 next c = 1 r =2 for RowIter=1 to h-1 for ColIter=0 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; to w-1 objExcel.Cells(r,c).Value = CellMatrix(RowIter)(ColIter).Text c = c +1 next r = r+1 c = 1 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; next END FUNCTION&amp;nbsp; SUB CallExample ExcelExport( "TB01" ) END SUB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 05:48:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/export-to-excel-macro/m-p/921790#M319295</guid>
      <dc:creator>yadav_anil782</dc:creator>
      <dc:date>2015-08-13T05:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: export to excel macro</title>
      <link>https://community.qlik.com/t5/QlikView/export-to-excel-macro/m-p/921791#M319296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try the same code with Aligned...and give the Macro Name in the Actions Tab.. Here &lt;STRONG&gt;ExcelExport&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14394542803228268 jive_text_macro" jivemacro_uid="_14394542803228268"&gt;
&lt;P&gt;FUNCTION ExcelExport() &lt;/P&gt;
&lt;P&gt;set obj = ActiveDocument.GetSheetObject( "TB01") &lt;/P&gt;
&lt;P&gt;w = obj.GetColumnCount &lt;/P&gt;
&lt;P&gt;if obj.GetRowCount&amp;gt;1001 then &lt;/P&gt;
&lt;P&gt;&amp;nbsp; h=1000 &lt;/P&gt;
&lt;P&gt;else h=obj.GetRowCount &lt;/P&gt;
&lt;P&gt;end if &lt;/P&gt;
&lt;P&gt;Set objExcel = CreateObject("Excel.Application") &lt;/P&gt;
&lt;P&gt;&amp;nbsp; objExcel.Workbooks.Add &lt;/P&gt;
&lt;P&gt;&amp;nbsp; objExcel.Worksheets(1).select()&lt;/P&gt;
&lt;P&gt;&amp;nbsp; objExcel.Visible = True &lt;/P&gt;
&lt;P&gt;&amp;nbsp; set CellMatrix = obj.GetCells2(0,0,w,h) &lt;/P&gt;
&lt;P&gt;&amp;nbsp; column = 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; for cc=0 to w-1 &lt;/P&gt;
&lt;P&gt;&amp;nbsp; objExcel.Cells(1,column).Value = CellMatrix(0)(cc).Text &lt;/P&gt;
&lt;P&gt;&amp;nbsp; objExcel.Cells(1,column).EntireRow.Font.Bold = True&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; column = column +1 &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; next &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; c = 1 &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; r =2 &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; for RowIter=1 to h-1 &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; for ColIter=0 to w-1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; objExcel.Cells(r,c).Value = CellMatrix(RowIter)(ColIter).Text &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; c = c +1 &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; r = r+1 &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; c = 1 &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; next &lt;/P&gt;
&lt;P&gt; END FUNCTION&amp;nbsp; &lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to do the Below Settings in Macro Module&lt;/P&gt;&lt;P&gt;Requested Module Security -&amp;gt; System Access&lt;BR /&gt;Current Local Security -&amp;gt; Allow System Access&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find the attached for your reference&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 08:26:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/export-to-excel-macro/m-p/921791#M319296</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-08-13T08:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: export to excel macro</title>
      <link>https://community.qlik.com/t5/QlikView/export-to-excel-macro/m-p/921792#M319297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Dear Settu,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;this part i already i done but main issue is in send&amp;nbsp;&amp;nbsp; this table throw email with schedule timing.plz hlep if you can .&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 04:07:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/export-to-excel-macro/m-p/921792#M319297</guid>
      <dc:creator>yadav_anil782</dc:creator>
      <dc:date>2015-08-18T04:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: export to excel macro</title>
      <link>https://community.qlik.com/t5/QlikView/export-to-excel-macro/m-p/921793#M319298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Check these threads.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/296673"&gt;Re: Sending mails macro vbs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-7940"&gt;Send Mail from QlikView with table in the mail body&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 05:31:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/export-to-excel-macro/m-p/921793#M319298</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-08-18T05:31:25Z</dc:date>
    </item>
  </channel>
</rss>

