<?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 to export multiple tables in to single excel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037613#M464604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to fetch all &lt;STRONG&gt;tables/straight tables&lt;/STRONG&gt; into single excel sheet using a macro( i can put this in a button).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one please help here.&lt;/P&gt;&lt;P&gt;I'm new to QlikView and struggling on this.&lt;/P&gt;&lt;P&gt;Any help is really appreciated!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Apr 2016 01:44:30 GMT</pubDate>
    <dc:creator>markgraham123</dc:creator>
    <dc:date>2016-04-15T01:44:30Z</dc:date>
    <item>
      <title>Macro to export multiple tables in to single excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037613#M464604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to fetch all &lt;STRONG&gt;tables/straight tables&lt;/STRONG&gt; into single excel sheet using a macro( i can put this in a button).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one please help here.&lt;/P&gt;&lt;P&gt;I'm new to QlikView and struggling on this.&lt;/P&gt;&lt;P&gt;Any help is really appreciated!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 01:44:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037613#M464604</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2016-04-15T01:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export multiple tables in to single excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037614#M464605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Mark,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Check the attachment.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 01:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037614#M464605</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-04-15T01:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export multiple tables in to single excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037615#M464606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagaraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i click on it, its' displaying the code. But not exporting to excel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 02:05:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037615#M464606</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2016-04-15T02:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export multiple tables in to single excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037616#M464607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;In the Module editor make sure the settings are like in this picture:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;IMG __jive_id="121740" alt="systemaccesss.JPG.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121740_systemaccesss.JPG.jpg" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 02:09:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037616#M464607</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-04-15T02:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export multiple tables in to single excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037617#M464608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nagaraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every time i click on the button, the module opens showing the script.&lt;/P&gt;&lt;P&gt;Can i stop this?&lt;/P&gt;&lt;P&gt;Also, i'm trying to get it in one sheet with 3 lines seperated. (I did notice that there is declaration of sheets)&lt;/P&gt;&lt;P&gt;Is there a possibility to get this??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 02:13:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037617#M464608</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2016-04-15T02:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export multiple tables in to single excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037618#M464609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Here you go.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 03:00:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037618#M464609</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-04-15T03:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export multiple tables in to single excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037619#M464610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nagaraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its opening in single sheet but the macro module opens when we click on the button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apart from that this is excellent and superb. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 03:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037619#M464610</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2016-04-15T03:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export multiple tables in to single excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037620#M464611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Mark,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Glad to hear.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For me it's not showing the macro window. Try below steps and check once again.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;In the Module Editor make sure the settings are like in this picture:&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&lt;IMG alt="systemaccesss.JPG.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121741_systemaccesss.JPG.jpg" style="height: auto;" /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;After that go to Settings -&amp;gt; Document Properties set "Macro override security" as below:&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/121745_Capture.PNG" style="height: auto;" /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM style=": ; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Save your application.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM style=": ; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 03:14:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037620#M464611</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-04-15T03:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export multiple tables in to single excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037621#M464612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a ton Sir!&lt;/P&gt;&lt;P&gt;You nailed it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 03:28:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037621#M464612</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2016-04-15T03:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export multiple tables in to single excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037622#M464613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm posting the code here. Hope this helps &lt;SPAN style="font-size: 13.3333px;"&gt;someone&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;someday&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14606932656216824 jive_text_macro" jivemacro_uid="_14606932656216824"&gt;
&lt;P&gt;sub exportToExcel&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;==============================================================&lt;/P&gt;
&lt;P&gt;' File Path &amp;amp; Name&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt; Path = "C:\temp\"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;FileName = "Test_"&lt;/P&gt;
&lt;P&gt;strSaveFile = Path &amp;amp; FileName&lt;/P&gt;
&lt;P&gt;'==============================================================&lt;/P&gt;
&lt;P&gt;'Open Excel&lt;/P&gt;
&lt;P&gt;set oXL=CreateObject("Excel.Application")&lt;/P&gt;
&lt;P&gt;oXL.visible=True&lt;/P&gt;
&lt;P&gt;oXL.Workbooks.Add&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;aSheetObj=Array("TB01","TB02","CH01")&amp;nbsp; ' Chart ID's here&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;'==============================================================&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;for i=0 to UBound(aSheetObj)&lt;/P&gt;
&lt;P&gt;Set oSH = oXL.ActiveSheet&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;num_rows = oSH.UsedRange.Rows.Count&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;If num_rows = 1&amp;nbsp; then&lt;/P&gt;
&lt;P&gt;oSH.Range("A2").Select&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Else&lt;/P&gt;
&lt;P&gt;oSH.Range("A" &amp;amp; num_rows+4).Select&lt;/P&gt;
&lt;P&gt;End If&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Set obj = ActiveDocument.GetSheetObject(aSheetObj(i))&lt;/P&gt;
&lt;P&gt;obj.CopyTableToClipboard True&lt;/P&gt;
&lt;P&gt;oSH.Paste&lt;/P&gt;
&lt;P&gt;sCaption=obj.GetCaption.Name.v&lt;/P&gt;
&lt;P&gt;set obj=Nothing &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;oSH.Cells.Select&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;oSH.Columns("A").ColumnWidth = 12.17&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;oSH.Columns("B").ColumnWidth = 12.17&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;If num_rows = 1&amp;nbsp; then&lt;/P&gt;
&lt;P&gt;oSH.Range("A" &amp;amp; num_rows).Value = sCaption&lt;/P&gt;
&lt;P&gt;oSH.Range("A" &amp;amp; num_rows).Font.Bold = True&lt;/P&gt;
&lt;P&gt;'oSH.Range("A" &amp;amp; num_rows).Font.ColorIndex = 3&lt;/P&gt;
&lt;P&gt;oSH.Range("A" &amp;amp; num_rows).Interior.ColorIndex = 40&lt;/P&gt;
&lt;P&gt;Else&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;oSH.Range("A" &amp;amp; num_rows+3).Value&amp;nbsp; = sCaption&lt;/P&gt;
&lt;P&gt;oSH.Range("A" &amp;amp; num_rows+3).Font.Bold = True&lt;/P&gt;
&lt;P&gt;'oSH.Range("A" &amp;amp; num_rows+3).Font.ColorIndex = 3&lt;/P&gt;
&lt;P&gt;oSH.Range("A" &amp;amp;num_rows+3).Interior.ColorIndex = 40&lt;/P&gt;
&lt;P&gt;End If&lt;/P&gt;
&lt;P&gt;'oXL.Selection.Columns.AutoFit &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;next&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;'==============================================================&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; oSH.Range("A1").Select &lt;/P&gt;
&lt;P&gt;&amp;nbsp; oXL.Sheets("Sheet2").Delete&lt;/P&gt;
&lt;P&gt;&amp;nbsp; oXL.Sheets("Sheet3").Delete&lt;/P&gt;
&lt;P&gt;&amp;nbsp; oSH.Name = "Data"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; oXL.ActiveWorkBook.SaveAs strSaveFile &amp;amp; replace(date, "/", "-") &amp;amp; ".xlsx"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;set oSH = Nothing&lt;/P&gt;
&lt;P&gt;set oXL=Nothing&lt;/P&gt;
&lt;P&gt;end sub&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121746_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 04:11:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037622#M464613</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-04-15T04:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export multiple tables in to single excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037623#M464614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nagaraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the problem.&lt;/P&gt;&lt;P&gt;The excel is exporting, but since there is already a file name with that name, it's popping up the error and asking to replace the existing file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the attached.&lt;/P&gt;&lt;P&gt;I think, getting timestamp in the 'save as' class works.&lt;/P&gt;&lt;P&gt;I tried to but its not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 14:17:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037623#M464614</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2016-04-15T14:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export multiple tables in to single excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037624#M464615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hello Mark,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; Sorry for the late reply. I'm not active on weekends in this forum. &lt;/SPAN&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; You can replace the below line in macro.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-style: inherit; color: black; font-size: 9pt !important;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: black; font-style: inherit; font-size: 9pt !important; text-decoration: line-through;"&gt;&lt;SPAN style="color: #ff0000; text-decoration: line-through;"&gt;oXL.ActiveWorkBook.SaveAs strSaveFile &amp;amp; replace(date, "/", "-") &amp;amp; ".xlsx"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; color: black; font-size: 9pt !important;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; color: black; font-size: 9pt !important;"&gt; &lt;SPAN style="color: #0000ff;"&gt;oXL.ActiveWorkBook.SaveAs strSaveFile &amp;amp; ActiveDocument.Evaluate("date(Now(), 'DD-MM-YYYY hh:mm:ss')") &amp;amp; ".xlsx" &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10pt; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Also, you no need to hard code the folder path in macro. Instead, create an inputbox and click new variable and name the variable as "vPath". Now, you can enter the path in front end. You need to change the below line in macro window.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;SPAN class="attribute" style="font-style: inherit; line-height: 1.5em; color: red; text-decoration: line-through;"&gt;Path&lt;/SPAN&gt;&lt;SPAN style="color: black; font-style: inherit; line-height: 1.5em; text-decoration: line-through;"&gt; = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em; color: blue; font-style: inherit; text-decoration: line-through;"&gt;"C:\temp\"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-style: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #0000ff; font-style: inherit; font-size: 9pt !important;"&gt;Set Path = ActiveDocument.GetVariable("vPath")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #0000ff; font-size: 9pt; font-style: inherit;"&gt;Path = vPath.GetContent.String&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-style: inherit; line-height: 1.5em; font-size: 9pt !important;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-style: inherit; line-height: 1.5em;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Apr 2016 07:26:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037624#M464615</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-04-16T07:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export multiple tables in to single excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037625#M464616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a gem in terms of macro for QlikView exports. I am trying to send a Pivot Table and List Box by this method. The data is going but the functionality is not traveling. May you please help in this regard?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 10:14:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037625#M464616</guid>
      <dc:creator>gagan_bhasin1</dc:creator>
      <dc:date>2018-01-09T10:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export multiple tables in to single excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037626#M464617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; Could you please create a new thread and post some sample file and explain the issues that you are facing.&amp;nbsp; I have some important work to complete now. I'll finish it and answer your question within 2 hours. Hope this is fine with you. &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Don't forget to tag me. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 10:31:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037626#M464617</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2018-01-09T10:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export multiple tables in to single excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037627#M464618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 12:16:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037627#M464618</guid>
      <dc:creator>gagan_bhasin1</dc:creator>
      <dc:date>2018-01-10T12:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export multiple tables in to single excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037628#M464619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi arsu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While using the above code explain by you it is still asking for save the file.&lt;/P&gt;&lt;P&gt;But actually, excel file to save on the mention location without asking for the file to save.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you check this, i have the same requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 12:46:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1037628#M464619</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2018-11-08T12:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export multiple tables in to single excel</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1598123#M464620</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recently come across this thread and used the code in the sample qlikview module and it works except that it only exports one table despite the fact that i've changed the name of the other two tables to the ones i have in my module, any reason why? I've also amended the settings as originally suggested in the trail of emails but it seems that the macro gets stuck after exporting the first table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Luci&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 13:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-multiple-tables-in-to-single-excel/m-p/1598123#M464620</guid>
      <dc:creator>Luci19</dc:creator>
      <dc:date>2019-07-02T13:26:33Z</dc:date>
    </item>
  </channel>
</rss>

