<?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 - Multiple Sheets over Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-Multiple-Sheets-over-Dimension/m-p/267649#M711227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not quite sure what you mean. If I select B&amp;amp;C and export, I get an Excel file with B and C in different sheets. Do you want to keep the original selection after completing the macro? In that case you could create a bookmark in the macro before looping over the values, and recall it after finishing before dropping the bookmark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I modified the macro quickly. See attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jun 2011 02:52:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-06-08T02:52:03Z</dc:date>
    <item>
      <title>Export to Excel - Multiple Sheets over Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-Multiple-Sheets-over-Dimension/m-p/267646#M711224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm trying to do is to take a table file which would normally be exported as one sheet in excel and instead to export it to multiple sheets whenever a particular dimension changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample of what some data might look like:&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 50%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;@1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;@2&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;@3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;121&lt;/TD&gt;&lt;TD&gt;Sampletext1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;122&lt;/TD&gt;&lt;TD&gt;Sampletext2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;123&lt;/TD&gt;&lt;TD&gt;Sampletext3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;121&lt;/TD&gt;&lt;TD&gt;Sampletext4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;122&lt;/TD&gt;&lt;TD&gt;Sampletext5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;123&lt;/TD&gt;&lt;TD&gt;Sampletext6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;121&lt;/TD&gt;&lt;TD&gt;Sampletext7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;122&lt;/TD&gt;&lt;TD&gt;Sampletext8&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿and here is how I'd like the Excel file to look, whereby each tab is labeled as the different change in dimension and only that relevant data shows up:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Picture2.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/5099_Picture2.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone provide some advice or sample code that might guide me to this type of solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;- Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 23:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-Excel-Multiple-Sheets-over-Dimension/m-p/267646#M711224</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-06T23:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Export to Excel - Multiple Sheets over Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-Multiple-Sheets-over-Dimension/m-p/267647#M711225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Peter,&lt;/P&gt;&lt;P&gt;Here's a macro example I whipped together with your data. It works alright but the sheets get a bit mixed up when adding more values to "reduce" over. At least you get the idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 01:27:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-Excel-Multiple-Sheets-over-Dimension/m-p/267647#M711225</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-07T01:27:06Z</dc:date>
    </item>
    <item>
      <title>Export to Excel - Multiple Sheets over Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-Multiple-Sheets-over-Dimension/m-p/267648#M711226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Johannes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick response. This is helpful. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering how this might be replicated on a table that already has selections applied? When I run this macro it seems to go through and create it's own selections, however, if I have selections already applied to a table/chart I'd like to be able to export that and do something similar to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;- Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 16:30:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-Excel-Multiple-Sheets-over-Dimension/m-p/267648#M711226</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-07T16:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Export to Excel - Multiple Sheets over Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-Excel-Multiple-Sheets-over-Dimension/m-p/267649#M711227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not quite sure what you mean. If I select B&amp;amp;C and export, I get an Excel file with B and C in different sheets. Do you want to keep the original selection after completing the macro? In that case you could create a bookmark in the macro before looping over the values, and recall it after finishing before dropping the bookmark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I modified the macro quickly. See attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 02:52:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-Excel-Multiple-Sheets-over-Dimension/m-p/267649#M711227</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-08T02:52:03Z</dc:date>
    </item>
  </channel>
</rss>

