<?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 Exporting to excel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exporting-to-excel/m-p/148971#M27186</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 export all the object's of a sheet to excel. I want to identify the no of column's occupied by an object when exporting to excel. So if someone could tell me that. Thank's in advance.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P style="font-style: italic"&gt;Amar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jul 2009 12:25:18 GMT</pubDate>
    <dc:creator>amars</dc:creator>
    <dc:date>2009-07-10T12:25:18Z</dc:date>
    <item>
      <title>Exporting to excel</title>
      <link>https://community.qlik.com/t5/QlikView/Exporting-to-excel/m-p/148971#M27186</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 export all the object's of a sheet to excel. I want to identify the no of column's occupied by an object when exporting to excel. So if someone could tell me that. Thank's in advance.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P style="font-style: italic"&gt;Amar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2009 12:25:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exporting-to-excel/m-p/148971#M27186</guid>
      <dc:creator>amars</dc:creator>
      <dc:date>2009-07-10T12:25:18Z</dc:date>
    </item>
    <item>
      <title>Exporting to excel</title>
      <link>https://community.qlik.com/t5/QlikView/Exporting-to-excel/m-p/148972#M27187</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;Now I have written a macro to export all object's (i.e. list, table, chart's) to excel . Each object on a new column. The macro is like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;sub CopyToXL&lt;/P&gt;&lt;P&gt;' Set Excel App&lt;/P&gt;&lt;P&gt;dim iCount&lt;/P&gt;&lt;P&gt;dim ObjName&lt;/P&gt;&lt;P&gt;dim ObjCaption&lt;/P&gt;&lt;P&gt;iCount=65&lt;/P&gt;&lt;P&gt;set XLApp = CreateObject("Excel.Application") ' Define Object&lt;/P&gt;&lt;P&gt;XLApp.Visible = True 'Visible set as true&lt;/P&gt;&lt;P&gt;set XLDoc = XLApp.Workbooks.Add 'Open new workbook&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Take the List of Object's in Excel&lt;/P&gt;&lt;P&gt;set XLSheet = XLDoc.Worksheets(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shtobj = ActiveDocument.ActiveSheet.GetSheetObjects&lt;/P&gt;&lt;P&gt;for i = lBound(Shtobj) to uBound(Shtobj)&lt;/P&gt;&lt;P&gt;set SheetObj = ActiveDocument.GetSheetObject(Shtobj(i).GetObjectId)&lt;/P&gt;&lt;P&gt;ObjName = Shtobj(i).GetObjectId&lt;/P&gt;&lt;P&gt;ObjCaption = Shtobj(i).GetCaption.Name.v&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Mid(ObjName,10,2)="LB" or Mid(ObjName,10,2)="TB" or Mid(ObjName,10,2)="CH" Then&lt;/P&gt;&lt;P&gt;'ObjCaption = SheetObj.Caption&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(((iCount-65)/26) &amp;gt; 1 ) Then&lt;/P&gt;&lt;P&gt;Cell = chr(((iCount-65)/26) + 64) &amp;amp; Chr(((iCount -65) Mod 26) + 65)&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;Cell = Chr(iCount)&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SheetObj.CopyTableToClipboard true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XLSheet.Range(Cell&amp;amp; "1") = ObjCaption&lt;/P&gt;&lt;P&gt;XLSheet.Range(Cell&amp;amp; "1").Font.Bold = True&lt;/P&gt;&lt;P&gt;XLSheet.Paste XLSheet.Range(Cell&amp;amp; "2")&lt;/P&gt;&lt;P&gt;iCount= XLSheet.UsedRange.Columns.Count + 1&lt;/P&gt;&lt;P&gt;iCount = iCount + 65&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;'------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I want to add excel formatting to it , if some one knows please tell me .&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;/DIV&gt;&lt;DIV&gt;Amar&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2009 18:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exporting-to-excel/m-p/148972#M27187</guid>
      <dc:creator>amars</dc:creator>
      <dc:date>2009-07-10T18:06:59Z</dc:date>
    </item>
  </channel>
</rss>

