<?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 Export to Excel - Different Sheets in the Same Workbook in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223104#M75657</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Suppose I have 10 markets in data and 1 pivot table.&lt;/P&gt;&lt;P&gt;I want to export 10 tables to 10 excel sheets with different market selected.&lt;/P&gt;&lt;P&gt;ie. select Market A export to Sheet 1, select group B export to Sheet 2 etc.&lt;/P&gt;&lt;P&gt;I need a macro that can automatically select each market one by one, and export the pivot to each excel sheet.&lt;/P&gt;&lt;P&gt;I've seen the same question on forum but there was no answer. Does anyone know where I can find examples? THANK YOU!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Oct 2009 00:52:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-10-23T00:52:14Z</dc:date>
    <item>
      <title>Export to Excel - Different Sheets in the Same Workbook</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223104#M75657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Suppose I have 10 markets in data and 1 pivot table.&lt;/P&gt;&lt;P&gt;I want to export 10 tables to 10 excel sheets with different market selected.&lt;/P&gt;&lt;P&gt;ie. select Market A export to Sheet 1, select group B export to Sheet 2 etc.&lt;/P&gt;&lt;P&gt;I need a macro that can automatically select each market one by one, and export the pivot to each excel sheet.&lt;/P&gt;&lt;P&gt;I've seen the same question on forum but there was no answer. Does anyone know where I can find examples? THANK YOU!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2009 00:52:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223104#M75657</guid>
      <dc:creator />
      <dc:date>2009-10-23T00:52:14Z</dc:date>
    </item>
    <item>
      <title>Export to Excel - Different Sheets in the Same Workbook</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223105#M75658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I've got right now : I can export tables to 5 excel files into 5 sheets in the same file.&lt;/P&gt;&lt;P&gt;I feel I'm almost there....can anyone help me with the macro?&lt;/P&gt;&lt;P&gt;THANKS!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2009 02:24:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223105#M75658</guid>
      <dc:creator />
      <dc:date>2009-10-23T02:24:08Z</dc:date>
    </item>
    <item>
      <title>Export to Excel - Different Sheets in the Same Workbook</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223106#M75659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;For you&lt;/STRONG&gt; &lt;IMG alt="Wink" src="http://community.qlik.com/emoticons/emotion-5.gif" /&gt;&lt;/P&gt;&lt;P&gt;sub CopyToXLbyDMA&lt;BR /&gt;' Set Excel App&lt;BR /&gt; set XLApp = CreateObject("Excel.Application") ' Define Object&lt;BR /&gt; set XLDoc = XLApp.Workbooks.Add 'Open new workbook&lt;BR /&gt; XLApp.Visible = True 'Visible set as true&lt;BR /&gt; z = 0&lt;BR /&gt; Set LBy = ActiveDocument.GetSheetObject("LB01") 'Per Year&lt;BR /&gt; valy = LBy.GetPossibleValues&lt;BR /&gt; for y= lbound(valy) to ubound(valy)&lt;BR /&gt; Time_BeforeSelection = ActiveDocument.GetApplication.GetElapsedMilliseconds&lt;BR /&gt; vSelectedItemy = valy(y)&lt;BR /&gt; Set Fieldy = LBy.GetField&lt;BR /&gt; Fieldy.Select vSelectedItemy&lt;/P&gt;&lt;P&gt;Time_AfterSelection = ActiveDocument.GetApplication.GetElapsedMilliseconds&lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt;&lt;BR /&gt; XLDoc.Worksheets.Add&lt;BR /&gt; set XLSheet = XLDoc.Worksheets(1) 'Select sheet where data should be pasted&lt;/P&gt;&lt;P&gt;' Get TB1&lt;BR /&gt; set table = ActiveDocument.GetSheetObject("CH01")&lt;BR /&gt; ' Copy table and paste into Excel&lt;BR /&gt; table.CopyTableToClipboard true 'Copy data to Clipboard&lt;BR /&gt; XLSheet.Paste XLSheet.Range("A1") 'Paste data into cell&lt;BR /&gt; XLsheet.Cells.EntireColumn.AutoFit&lt;BR /&gt; XLsheet.Cells.EntireRow.AutoFit&lt;BR /&gt; XLsheet.name = "Tabella_"&amp;amp;y&lt;BR /&gt; next 'Year&lt;BR /&gt; Fieldy.Clear&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;Daniela&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2009 17:52:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223106#M75659</guid>
      <dc:creator />
      <dc:date>2009-10-23T17:52:27Z</dc:date>
    </item>
    <item>
      <title>Export to Excel - Different Sheets in the Same Workbook</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223107#M75660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Daniela!!&lt;/P&gt;&lt;P&gt;I've changed your script a little bit and worked very well!!&lt;/P&gt;&lt;P&gt;Please see the attached file - I HAVE ANOTHER QUESTION&lt;/P&gt;&lt;P&gt;I have 5 markets, now I can let the macro run from A to E and rename each tab by A, B,C,D,E.&lt;/P&gt;&lt;P&gt;What if I want them to rum from E to A and rename the tab names as well?&lt;/P&gt;&lt;P&gt;I tried to use for y= ubound(valy) to lbound(valy) but it didn't work, so I created another index column assigning A as 5, ..., E as 1.&lt;/P&gt;&lt;P&gt;So the variable becomes the index number.&lt;/P&gt;&lt;P&gt;How do I rename the tabs as Market E, D, C, B,A?&lt;/P&gt;&lt;P&gt;How to make the code recognize what is being selected in field "DMA" and name tabs as selected DMA?&lt;/P&gt;&lt;P&gt;THANKS!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2009 23:25:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223107#M75660</guid>
      <dc:creator />
      <dc:date>2009-10-23T23:25:52Z</dc:date>
    </item>
    <item>
      <title>Export to Excel - Different Sheets in the Same Workbook</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223108#M75661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, the follwoing example create a XLS file and the name of each tab is changed by SalesMen Name + Year ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Oct 2009 01:08:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223108#M75661</guid>
      <dc:creator>GabrielAraya</dc:creator>
      <dc:date>2009-10-24T01:08:56Z</dc:date>
    </item>
    <item>
      <title>Export to Excel - Different Sheets in the Same Workbook</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223109#M75662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE id="texttable"&gt;&lt;TBODY&gt;&lt;TR valign="top"&gt;&lt;TD id="gap"&gt;&lt;/TD&gt;&lt;TD class="almost_half_cell"&gt;&lt;DIV dir="ltr" id="result_box"&gt;To make you count from E to A minus!&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;B&gt;for&lt;/B&gt; y=&lt;B&gt;Ubound&lt;/B&gt;(valy) to &lt;B&gt;Lbound&lt;/B&gt;(valy) &lt;STRONG&gt;STEP -1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ciao!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Daniela&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Oct 2009 23:02:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223109#M75662</guid>
      <dc:creator />
      <dc:date>2009-10-25T23:02:56Z</dc:date>
    </item>
    <item>
      <title>Export to Excel - Different Sheets in the Same Workbook</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223110#M75663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniela,&lt;/P&gt;&lt;P&gt;Thank you very much!!&lt;/P&gt;&lt;P&gt;But can you illustrate more clearly about this part?&lt;/P&gt;&lt;P&gt;Do I type "step -1" right after the " &lt;STRONG&gt;for&lt;/STRONG&gt; y=&lt;B&gt;Ubound&lt;/B&gt;(valy) to &lt;B&gt;Lbound&lt;/B&gt;(valy) "?&lt;/P&gt;&lt;P&gt;That didn't work for me, the last part "Fieldy.Clear" was highlighted and the comment was "Object required : 'Fieldy''&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Why is that? THANK YOU IN ADVANCE!! &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 20:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223110#M75663</guid>
      <dc:creator />
      <dc:date>2009-10-27T20:04:29Z</dc:date>
    </item>
    <item>
      <title>Export to Excel - Different Sheets in the Same Workbook</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223111#M75664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks gaa,&lt;/P&gt;&lt;P&gt;this is very helpful! &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 20:05:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223111#M75664</guid>
      <dc:creator />
      <dc:date>2009-10-27T20:05:44Z</dc:date>
    </item>
    <item>
      <title>Export to Excel - Different Sheets in the Same Workbook</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223112#M75665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Grazie, il nome al foglio sono riuscito a darglielo MI ERO INCASINATO PERCHE' E' OBBLIGATORIO DARGLI UN NUMERO NON NE CAPISCO IL MOTIVO MA VUOLE OBBLIGATORIAMENTE UN FOGLIO NUMERICO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XLsheet.name = vSelectedItemy &amp;amp;&lt;/P&gt;&lt;P&gt;"_("&amp;amp;y &amp;amp;")"&lt;/P&gt;&lt;P&gt;Non riesco però ad attribuire il nome al documento xls&lt;/P&gt;&lt;P&gt;Grazie Ancora&lt;/P&gt;&lt;P&gt;Claudio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 02:49:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223112#M75665</guid>
      <dc:creator />
      <dc:date>2009-11-25T02:49:09Z</dc:date>
    </item>
    <item>
      <title>Export to Excel - Different Sheets in the Same Workbook</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223113#M75666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ciao Daniela,&lt;/P&gt;&lt;P&gt;bravissima&lt;/P&gt;&lt;P&gt;bella storia... le mie conoscenze si limitavano all'exportbiff.&lt;/P&gt;&lt;P&gt;E" possibile attribuire un nome al documento XLS ???&lt;/P&gt;&lt;P&gt;Grazie&lt;/P&gt;&lt;P&gt;Claudio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 02:56:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223113#M75666</guid>
      <dc:creator />
      <dc:date>2009-11-25T02:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Export to Excel - Different Sheets in the Same Workbook</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223114#M75667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dani&lt;/P&gt;&lt;P&gt;your script very helpful for me but i am not able to get dynamic sheet name&amp;nbsp; means i want &lt;/P&gt;&lt;P&gt;that each sheet shold have starting name with their dealer name.&lt;/P&gt;&lt;P&gt;Thanx&amp;amp; Regards&lt;/P&gt;&lt;P&gt;rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 12:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223114#M75667</guid>
      <dc:creator>rohit214</dc:creator>
      <dc:date>2012-06-13T12:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Export to Excel - Different Sheets in the Same Workbook</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223115#M75668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;can you translate that macro in english&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Thanx&amp;amp; Regards&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 12:10:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223115#M75668</guid>
      <dc:creator>rohit214</dc:creator>
      <dc:date>2012-06-13T12:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Export to Excel - Different Sheets in the Same Workbook</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223116#M75669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Gaa,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am getting the following error El componente ActiveX no puede crear el objeto: 'Excel.Application' -- do you have any idea why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thxs, Cecilia.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2012 19:31:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223116#M75669</guid>
      <dc:creator />
      <dc:date>2012-11-15T19:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Export to Excel - Different Sheets in the Same Workbook</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223117#M75670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please add PE enabled files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 08:59:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-Excel-Different-Sheets-in-the-Same-Workbook/m-p/223117#M75670</guid>
      <dc:creator />
      <dc:date>2012-12-19T08:59:10Z</dc:date>
    </item>
  </channel>
</rss>

