<?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 Export to excel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-to-excel/m-p/150524#M28525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;thanks for the reply&lt;/P&gt;&lt;P&gt;but i still cant find a way to make my sheets up or down , means that i am able to move the sheet 3 before sheet1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jul 2009 14:37:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-29T14:37:54Z</dc:date>
    <item>
      <title>Export to excel</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel/m-p/150522#M28523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;i am exporting different tables to excel through a macro where in some tables are in one sheet and some are in other sheets&lt;/P&gt;&lt;P&gt;I just cant find the way to move the sheets up or down through macro so that i can place the sheets accordingly in the report&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>Wed, 29 Jul 2009 13:08:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel/m-p/150522#M28523</guid>
      <dc:creator />
      <dc:date>2009-07-29T13:08:52Z</dc:date>
    </item>
    <item>
      <title>Export to excel</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel/m-p/150523#M28524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;I have written a macro which will export all the object on a sheet(Table, chart &amp;amp; List's) in a excel file leaving one alternate column. It is like this&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;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;sub CopyToXL&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;' Get TB1&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;'msgbox Cell &amp;amp; iCount&lt;/P&gt;&lt;P&gt;XLSheet.Paste XLSheet.Range(Cell&amp;amp; "2")&lt;/P&gt;&lt;P&gt;'XLSheet.Paste XLSheet.Cells(1,iCount)&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;'msgbox iCount&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;P&gt;'****************************************************************************************************************************************************************&lt;/P&gt;&lt;P&gt;Try using this one , It is not properly formated , so you will need to add the formating.&lt;/P&gt;&lt;P&gt;Regard's&lt;/P&gt;&lt;P&gt;Amar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 14:23:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel/m-p/150523#M28524</guid>
      <dc:creator>amars</dc:creator>
      <dc:date>2009-07-29T14:23:38Z</dc:date>
    </item>
    <item>
      <title>Export to excel</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel/m-p/150524#M28525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;thanks for the reply&lt;/P&gt;&lt;P&gt;but i still cant find a way to make my sheets up or down , means that i am able to move the sheet 3 before sheet1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 14:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel/m-p/150524#M28525</guid>
      <dc:creator />
      <dc:date>2009-07-29T14:37:54Z</dc:date>
    </item>
    <item>
      <title>Export to excel</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel/m-p/150525#M28526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if you found a way to sort your worksheets but here is how I am doing it. This is the code that I am using to create a new workbook, add sheets, move sheets and rename them. You may have to modify it slightly to work with any other existing Excel macros that you have created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR style="margin:0in 0in 0pt;" /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;BR style="margin:0in 0in 0pt;" /&gt;set&lt;/STRONG&gt; XLApp = CreateObject("Excel.Application") 'Define Object&lt;BR style="text-indent:0.5in;margin:0in 0in 0pt;" /&gt;XLApp.Visible = True 'Visible set as true&lt;BR style="margin:0in 0in 0pt;" /&gt;&lt;BR style="margin:0in 0in 0pt;" /&gt;set XLDoc = XLApp.Workbooks.Add 'Open new workbook&lt;BR class="codecomments" style="margin:0in 0in 0pt;" /&gt; 'XLDoc.Worksheets(3).Delete 'Delete unneeded sheets&lt;BR class="codecomments" style="margin:0in 0in 0pt;" /&gt; 'XLDoc.Worksheets(2).Delete 'Delete unneeded sheets&lt;BR style="margin:0in 0in 0pt;" /&gt; XLDoc.Worksheets.Add 'To Add Additional Sheet&lt;BR style="margin:0in 0in 0pt 0.5in;" /&gt;XLDoc.Worksheets("Sheet4").Move, XLDoc.Worksheets("Sheet3") 'Parameter after comma means move param 1 after param 2 (move sheet 4 after sheet 3)&lt;BR style="margin:0in 0in 0pt 0.5in;" /&gt;'XLDoc.Worksheets("Sheet3").Move XLDoc.Worksheets("Sheet2") 'no comma means move param 1 before param 2 (in this case it would move sheet 3 before sheet 2)&lt;BR style="margin:0in 0in 0pt;" /&gt;&lt;BR style="margin:0in 0in 0pt;" /&gt;'Format cells&lt;BR style="margin:0in 0in 0pt;" /&gt;set table = ActiveDocument.GetSheetObject("CH02") 'Qlikview object that you are pulling data from (in this case chart 2)&lt;BR style="margin:0in 0in 0pt;" /&gt;&lt;BR style="margin:0in 0in 0pt;" /&gt;'Copy table and paste into Excel&lt;BR style="margin:0in 0in 0pt;" /&gt;set XLSheet = XLDoc.Worksheets("Sheet1") 'sheet where data should be pasted&lt;BR style="text-indent:0.5in;margin:0in 0in 0pt;" /&gt;table.CopyTableToClipboard true&lt;BR style="text-indent:0.5in;margin:0in 0in 0pt;" /&gt;XLSheet.Paste XLSheet.Range("A1") 'Starting Column in which to paste data&lt;BR style="text-indent:0.5in;margin:0in 0in 0pt;" /&gt;XLSheet.Name = "Chart 2" 'Rename worksheet&lt;BR style="margin:0in 0in 0pt;" /&gt;&lt;BR style="margin:0in 0in 0pt;" /&gt;'Add additional statements like the section above ('Format cells through the rename statement) to copy and paste additional Qlikview objects into sheets in the same workbook.&lt;BR style="margin:0in 0in 0pt;" /&gt;&lt;BR style="margin:0in 0in 0pt;" /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 22:36:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel/m-p/150525#M28526</guid>
      <dc:creator />
      <dc:date>2009-09-23T22:36:50Z</dc:date>
    </item>
  </channel>
</rss>

