<?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 table to excel with the table title - problem showing data in all cells in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-export-table-to-excel-with-the-table-title-problem/m-p/230149#M82013</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone help me with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Aug 2010 11:57:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-02T11:57:54Z</dc:date>
    <item>
      <title>Macro to export table to excel with the table title - problem showing data in all cells</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-table-to-excel-with-the-table-title-problem/m-p/230148#M82012</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;I want to be able to export my pivot table to excel - so that all cells have value in it (much like pressing the 'send to excel' button in the caption)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My macro, below, copies the table and pastes, so for dimensions to the left, only one cell has a value until the dimension changes.&lt;/P&gt;&lt;P&gt;I want to be able to mimic the 'send to excel' as I cant have blank values - it needs to look like a table rather than a pivot in Excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;macro:&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;sub export_actions&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;set v = ActiveDocument.Variables("QvWorkPath")&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;set XLApp = CreateObject("Excel.Application")&lt;/P&gt;&lt;P style="font-weight: bold"&gt;XLApp.Visible =true' false&lt;/P&gt;&lt;P style="font-weight: bold"&gt;set ExcelDoc = XLApp.Workbooks.Add&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;set obj1 = ActiveDocument.getsheetobject("CH02")&lt;/P&gt;&lt;P style="font-weight: bold"&gt;set chart=ActiveDocument.GetSheetObject("CH02")&lt;/P&gt;&lt;P style="font-weight: bold"&gt;set p = chart.GetProperties&lt;/P&gt;&lt;P style="font-weight: bold"&gt;ExcelDoc.Sheets(1).cells(1,1).Value = p.GraphLayout.WindowTitle.v&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;obj1.CopyTableToClipboard true&lt;/P&gt;&lt;P style="font-weight: bold"&gt;ExcelDoc.Sheets(1).cells(2,1).select&lt;/P&gt;&lt;P style="font-weight: bold"&gt;ExcelDoc.Sheets(1).paste&lt;/P&gt;&lt;P style="font-weight: bold"&gt;ExcelDoc.Sheets(1).Rows("2:2").Font.Bold = True&lt;/P&gt;&lt;P style="font-weight: bold"&gt;set obj1 = nothing&lt;/P&gt;&lt;P style="font-weight: bold"&gt;ExcelDoc.Sheets(1).cells.select&lt;/P&gt;&lt;P style="font-weight: bold"&gt;ExcelDoc.Sheets(1).Cells.EntireRow.RowHeight = 12.75&lt;/P&gt;&lt;P style="font-weight: bold"&gt;ExcelDoc.Sheets(1).Cells.EntireColumn.AutoFit&lt;/P&gt;&lt;P style="font-weight: bold"&gt;ExcelDoc.Sheets(1).cells(2,1).select&lt;/P&gt;&lt;P style="font-weight: bold"&gt;XLApp.Visible = true&lt;/P&gt;&lt;P style="font-weight: bold"&gt;end sub&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 10:12:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-table-to-excel-with-the-table-title-problem/m-p/230148#M82012</guid>
      <dc:creator />
      <dc:date>2010-07-22T10:12:25Z</dc:date>
    </item>
    <item>
      <title>Macro to export table to excel with the table title - problem showing data in all cells</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-table-to-excel-with-the-table-title-problem/m-p/230149#M82013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone help me with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Aug 2010 11:57:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-table-to-excel-with-the-table-title-problem/m-p/230149#M82013</guid>
      <dc:creator />
      <dc:date>2010-08-02T11:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to export table to excel with the table title - problem showing data in all cells</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-table-to-excel-with-the-table-title-problem/m-p/230150#M82014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt is this solved i am in the same position?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2014 20:15:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-table-to-excel-with-the-table-title-problem/m-p/230150#M82014</guid>
      <dc:creator />
      <dc:date>2014-07-18T20:15:54Z</dc:date>
    </item>
  </channel>
</rss>

