<?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:Merging cells while exporting to excel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Merging-cells-while-exporting-to-excel/m-p/190375#M52912</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pedro Burgo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is your issue resolved or not.&lt;/P&gt;&lt;P&gt;If not. Please find the attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neetu Singh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Apr 2011 09:02:29 GMT</pubDate>
    <dc:creator>neetu_singh</dc:creator>
    <dc:date>2011-04-13T09:02:29Z</dc:date>
    <item>
      <title>Merging cells while exporting to excel</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-cells-while-exporting-to-excel/m-p/190369#M52906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, I have a pivot table with the following dimensions&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3970_sourceID:3970" /&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to export it to excel with the same format. I mean, the merged cells of the 1,2 and 3 dimension. And not the way it does, at least to me [:'(]&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3971_sourceID:3971" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 13:20:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-cells-while-exporting-to-excel/m-p/190369#M52906</guid>
      <dc:creator />
      <dc:date>2011-03-30T13:20:58Z</dc:date>
    </item>
    <item>
      <title>Merging cells while exporting to excel</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-cells-while-exporting-to-excel/m-p/190370#M52907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I usually export to excel via macro and when need execute a excel macro to do some tasks.&lt;/P&gt;&lt;P&gt;In your case maybe you need include in your excel something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sub Dividir()&lt;BR /&gt;Dim FilasMerge As Integer&lt;BR /&gt;FilasMerge = Range(Selection, Selection).Rows.Count&lt;BR /&gt;Dim BucleMerge As Integer&lt;BR /&gt;&lt;BR /&gt;Dim Valor As Integer&lt;BR /&gt;For Valor = 2 To Cells(Rows.Count, "A").End(xlUp).Row&lt;BR /&gt; If Range("A" &amp;amp; Valor).MergeCells = True Then&lt;BR /&gt; Range("A" &amp;amp; Valor).Select&lt;BR /&gt; FilasMerge = Valor + Range(Selection, Selection).Rows.Count&lt;BR /&gt; BucleMerge = Valor&lt;BR /&gt; Range("A" &amp;amp; Valor).MergeCells = False&lt;BR /&gt; Do While BucleMerge &amp;lt; FilasMerge - 1&lt;BR /&gt; Range("A" &amp;amp; BucleMerge + 1) = Range("A" &amp;amp; BucleMerge)&lt;BR /&gt; BucleMerge = BucleMerge + 1&lt;BR /&gt; Loop&lt;BR /&gt; FilasMerge = 0&lt;BR /&gt; BucleMerge = 0&lt;BR /&gt; End If&lt;BR /&gt;Next Valor&lt;BR /&gt;Valor = 0&lt;BR /&gt;&lt;BR /&gt;For Valor = 2 To Cells(Rows.Count, "A").End(xlUp).Row&lt;BR /&gt; If Range("B" &amp;amp; Valor).MergeCells = True Then&lt;BR /&gt; Range("B" &amp;amp; Valor).Select&lt;BR /&gt; FilasMerge = Valor + Range(Selection, Selection).Rows.Count&lt;BR /&gt; BucleMerge = Valor&lt;BR /&gt; Range("B" &amp;amp; Valor).MergeCells = False&lt;BR /&gt; Do While BucleMerge &amp;lt; FilasMerge - 1&lt;BR /&gt; Range("B" &amp;amp; BucleMerge + 1) = Range("B" &amp;amp; BucleMerge)&lt;BR /&gt; BucleMerge = BucleMerge + 1&lt;BR /&gt; Loop&lt;BR /&gt; FilasMerge = 0&lt;BR /&gt; BucleMerge = 0&lt;BR /&gt; End If&lt;BR /&gt;Next Valor&lt;BR /&gt;Valor = 0&lt;BR /&gt;For Valor = 2 To Cells(Rows.Count, "A").End(xlUp).Row&lt;BR /&gt; If Range("C" &amp;amp; Valor).MergeCells = True Then&lt;BR /&gt; Range("C" &amp;amp; Valor).Select&lt;BR /&gt; FilasMerge = Valor + Range(Selection, Selection).Rows.Count&lt;BR /&gt; BucleMerge = Valor&lt;BR /&gt; Range("C" &amp;amp; Valor).MergeCells = False&lt;BR /&gt; Do While BucleMerge &amp;lt; FilasMerge - 1&lt;BR /&gt; Range("C" &amp;amp; BucleMerge + 1) = Range("C" &amp;amp; BucleMerge)&lt;BR /&gt; BucleMerge = BucleMerge + 1&lt;BR /&gt; Loop&lt;BR /&gt; FilasMerge = 0&lt;BR /&gt; BucleMerge = 0&lt;BR /&gt; End If&lt;BR /&gt;Next Valor&lt;BR /&gt;Valor = 0&lt;BR /&gt;End Sub&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You could run this macro into excel, but if you need do it automatically from qlikview and if you don't know how to, see this link:&lt;/P&gt;&lt;P&gt;http://community.qlik.com/forums/t/41444.aspx&lt;/P&gt;&lt;P&gt;There you can see will need launch the above excel macro, using something like:&lt;/P&gt;&lt;P&gt;Objeto.Application.run "Dividir"&lt;/P&gt;&lt;P&gt;what it's used to run macros of the application, in this case excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this can help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 15:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-cells-while-exporting-to-excel/m-p/190370#M52907</guid>
      <dc:creator />
      <dc:date>2011-03-30T15:59:17Z</dc:date>
    </item>
    <item>
      <title>Re:Merging cells while exporting to excel</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-cells-while-exporting-to-excel/m-p/190371#M52908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi. First of all, thank you!. Second, I've tried your code but It has not worked for me. I don't know why. But anyway you gave the key, so I've made the following code:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/8081.Captura.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/8081.Captura.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The columns number (3) may be replaced by the dimensions of the chart. What do you think&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 09:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-cells-while-exporting-to-excel/m-p/190371#M52908</guid>
      <dc:creator />
      <dc:date>2011-03-31T09:40:24Z</dc:date>
    </item>
    <item>
      <title>Re:Merging cells while exporting to excel</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-cells-while-exporting-to-excel/m-p/190372#M52909</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;You can also use this macro for send to excel into the same format as in pivot table but it works on button:&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&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;/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;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;/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;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&gt;&lt;B&gt;sub&lt;/B&gt; xport2xl()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iRow = 1&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;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;set&lt;/P&gt;&lt;B&gt;&lt;/B&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 style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;xlApp.Visible =&lt;/P&gt;&lt;P&gt;&lt;B&gt;True&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xlWB = xlApp.Workbooks.Add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;set&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;xlSheet = xlWB.Worksheets(1) &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;set&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;obj = ActiveDocument.getsheetobject(ChartName) &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xlSheet.Activate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xlSheet.Cells.Clear&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&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;set&lt;/P&gt;&lt;B&gt;&lt;/B&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 style="font-weight: bold"&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;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&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;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&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;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;txt.CopytableToClipboard &lt;B&gt;TRUE&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;xlSheet.Cells(iRow,1).&lt;/P&gt;&lt;P&gt;&lt;B&gt;Select&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xlSheet.Paste&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&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;end&lt;/P&gt;&lt;B&gt;&lt;/B&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 style="font-weight: bold"&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;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neetu Singh&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 11:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-cells-while-exporting-to-excel/m-p/190372#M52909</guid>
      <dc:creator>neetu_singh</dc:creator>
      <dc:date>2011-03-31T11:42:38Z</dc:date>
    </item>
    <item>
      <title>Re:Merging cells while exporting to excel</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-cells-while-exporting-to-excel/m-p/190373#M52910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excuse me Neetu. I've tried the code the following way and it doesn't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;&lt;BR /&gt;sub xport2xl()&lt;BR /&gt;Set xlApp = CreateObject("Excel.Application")&lt;BR /&gt;iRow = 1&lt;BR /&gt;set xlApp.Visible = True&lt;BR /&gt;set xlWB = xlApp.Workbooks.Add&lt;BR /&gt;set xlSheet = xlWB.Worksheets(1)&lt;BR /&gt;set obj = ActiveDocument.getsheetobject("CH53")&lt;BR /&gt;xlSheet.Activate&lt;BR /&gt;xlSheet.Cells.Clear&lt;BR /&gt;set txt.CopytableToClipboard = TRUE&lt;BR /&gt;xlSheet.Cells(iRow,1).Select&lt;BR /&gt;xlSheet.Paste&lt;BR /&gt;end sub&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Did I miss something?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 12:02:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-cells-while-exporting-to-excel/m-p/190373#M52910</guid>
      <dc:creator />
      <dc:date>2011-03-31T12:02:18Z</dc:date>
    </item>
    <item>
      <title>Re:Merging cells while exporting to excel</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-cells-while-exporting-to-excel/m-p/190374#M52911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/1541.Captura.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/1541.Captura.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It works!!! and It's easier!! Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 12:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-cells-while-exporting-to-excel/m-p/190374#M52911</guid>
      <dc:creator />
      <dc:date>2011-03-31T12:08:46Z</dc:date>
    </item>
    <item>
      <title>Re:Merging cells while exporting to excel</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-cells-while-exporting-to-excel/m-p/190375#M52912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pedro Burgo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is your issue resolved or not.&lt;/P&gt;&lt;P&gt;If not. Please find the attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neetu Singh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2011 09:02:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-cells-while-exporting-to-excel/m-p/190375#M52912</guid>
      <dc:creator>neetu_singh</dc:creator>
      <dc:date>2011-04-13T09:02:29Z</dc:date>
    </item>
    <item>
      <title>Re:Merging cells while exporting to excel</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-cells-while-exporting-to-excel/m-p/190376#M52913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neetu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wao! It's Great! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &amp;amp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 13:47:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-cells-while-exporting-to-excel/m-p/190376#M52913</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-09T13:47:02Z</dc:date>
    </item>
  </channel>
</rss>

