<?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: How to format data into excel? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-format-data-into-excel/m-p/705061#M1061940</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FUNCTION ExcelExport(objID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set obj = ActiveDocument.GetSheetObject( objID )&lt;/P&gt;&lt;P&gt;w = obj.GetColumnCount&lt;/P&gt;&lt;P&gt;if obj.GetRowCount&amp;gt;1001 then h=1000 else h=obj.GetRowCount end if&lt;/P&gt;&lt;P&gt;Set objExcel = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;objExcel.Workbooks.Add &lt;/P&gt;&lt;P&gt;objExcel.Worksheets(1).select()&lt;/P&gt;&lt;P&gt;objExcel.Visible = True&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set CellMatrix = obj.GetCells2(0,0,w,h)&lt;/P&gt;&lt;P&gt;column = 1&lt;/P&gt;&lt;P&gt;for cc=0 to w-1&lt;/P&gt;&lt;P&gt;objExcel.Cells(1,column).Value = CellMatrix(0)(cc).Text&lt;/P&gt;&lt;P&gt;objExcel.Cells(1,column).EntireRow.Font.Bold = True&lt;/P&gt;&lt;P&gt;column = column +1&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;c = 1&lt;/P&gt;&lt;P&gt;r =2&lt;/P&gt;&lt;P&gt;for RowIter=1 to h-1&lt;/P&gt;&lt;P&gt;for ColIter=0 to w-1&lt;/P&gt;&lt;P&gt;objExcel.Cells(r,c).Value = CellMatrix(RowIter)(ColIter).Text&lt;/P&gt;&lt;P&gt;c = c +1&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;r = r+1&lt;/P&gt;&lt;P&gt;c = 1&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;END FUNCTION &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB CallExample ExcelExport( "CH01" )&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4416"&gt;VB Macro to Loop Field (Dynamic) and Export Chart (Dynamic) to Excel &amp;amp;amp; Name Sheets by Field Value&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4870"&gt;Useful Qlikview Macros&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-6923"&gt;QlikView automation by external VBScript scripts&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Sep 2014 19:10:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-09-26T19:10:02Z</dc:date>
    <item>
      <title>How to format data into excel?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-format-data-into-excel/m-p/705058#M1061937</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;I have a excel file with data as in attached input. I need to format the data which is shown in attached output excel file. can anyone suggest me whether would it be possible with qvw?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 14:13:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-format-data-into-excel/m-p/705058#M1061937</guid>
      <dc:creator />
      <dc:date>2014-09-26T14:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to format data into excel?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-format-data-into-excel/m-p/705059#M1061938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;attachment missing&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 14:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-format-data-into-excel/m-p/705059#M1061938</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-09-26T14:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to format data into excel?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-format-data-into-excel/m-p/705060#M1061939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 14:17:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-format-data-into-excel/m-p/705060#M1061939</guid>
      <dc:creator />
      <dc:date>2014-09-26T14:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to format data into excel?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-format-data-into-excel/m-p/705061#M1061940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FUNCTION ExcelExport(objID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set obj = ActiveDocument.GetSheetObject( objID )&lt;/P&gt;&lt;P&gt;w = obj.GetColumnCount&lt;/P&gt;&lt;P&gt;if obj.GetRowCount&amp;gt;1001 then h=1000 else h=obj.GetRowCount end if&lt;/P&gt;&lt;P&gt;Set objExcel = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;objExcel.Workbooks.Add &lt;/P&gt;&lt;P&gt;objExcel.Worksheets(1).select()&lt;/P&gt;&lt;P&gt;objExcel.Visible = True&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set CellMatrix = obj.GetCells2(0,0,w,h)&lt;/P&gt;&lt;P&gt;column = 1&lt;/P&gt;&lt;P&gt;for cc=0 to w-1&lt;/P&gt;&lt;P&gt;objExcel.Cells(1,column).Value = CellMatrix(0)(cc).Text&lt;/P&gt;&lt;P&gt;objExcel.Cells(1,column).EntireRow.Font.Bold = True&lt;/P&gt;&lt;P&gt;column = column +1&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;c = 1&lt;/P&gt;&lt;P&gt;r =2&lt;/P&gt;&lt;P&gt;for RowIter=1 to h-1&lt;/P&gt;&lt;P&gt;for ColIter=0 to w-1&lt;/P&gt;&lt;P&gt;objExcel.Cells(r,c).Value = CellMatrix(RowIter)(ColIter).Text&lt;/P&gt;&lt;P&gt;c = c +1&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;r = r+1&lt;/P&gt;&lt;P&gt;c = 1&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;END FUNCTION &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB CallExample ExcelExport( "CH01" )&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4416"&gt;VB Macro to Loop Field (Dynamic) and Export Chart (Dynamic) to Excel &amp;amp;amp; Name Sheets by Field Value&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4870"&gt;Useful Qlikview Macros&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-6923"&gt;QlikView automation by external VBScript scripts&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 19:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-format-data-into-excel/m-p/705061#M1061940</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-26T19:10:02Z</dc:date>
    </item>
  </channel>
</rss>

