<?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 Multiple objects Send to excel into one sheet in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-objects-Send-to-excel-into-one-sheet/m-p/368186#M1178843</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 need to export all objects of a document into excel. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written the code as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub exp&lt;/P&gt;&lt;P&gt;Set objExcelApp = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;objExcelApp.Visible = true&lt;/P&gt;&lt;P&gt;Set objExcelDoc = objExcelApp.Workbooks.Add&lt;/P&gt;&lt;P&gt;set s = ActiveDocument.ActiveSheet&lt;/P&gt;&lt;P&gt;objs = s.GetSheetObjects&lt;/P&gt;&lt;P&gt;msgbox ubound(objs)&lt;/P&gt;&lt;P&gt;for i=lbound(objs) to ubound(objs)&lt;/P&gt;&lt;P&gt;msgbox objs(i).GetObjectID()&lt;/P&gt;&lt;P&gt;set xlSheet = objExcelDoc.Worksheets(1)&lt;/P&gt;&lt;P&gt;objs(i).SendToExcel&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i execute the above code, for each objs(i).sendToExcel, it opens a new xls file. But i need to send all the objects in the document into one excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest how to proceed...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Mar 2012 08:13:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-26T08:13:01Z</dc:date>
    <item>
      <title>Multiple objects Send to excel into one sheet</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-objects-Send-to-excel-into-one-sheet/m-p/368186#M1178843</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 need to export all objects of a document into excel. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written the code as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub exp&lt;/P&gt;&lt;P&gt;Set objExcelApp = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;objExcelApp.Visible = true&lt;/P&gt;&lt;P&gt;Set objExcelDoc = objExcelApp.Workbooks.Add&lt;/P&gt;&lt;P&gt;set s = ActiveDocument.ActiveSheet&lt;/P&gt;&lt;P&gt;objs = s.GetSheetObjects&lt;/P&gt;&lt;P&gt;msgbox ubound(objs)&lt;/P&gt;&lt;P&gt;for i=lbound(objs) to ubound(objs)&lt;/P&gt;&lt;P&gt;msgbox objs(i).GetObjectID()&lt;/P&gt;&lt;P&gt;set xlSheet = objExcelDoc.Worksheets(1)&lt;/P&gt;&lt;P&gt;objs(i).SendToExcel&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i execute the above code, for each objs(i).sendToExcel, it opens a new xls file. But i need to send all the objects in the document into one excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest how to proceed...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 08:13:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-objects-Send-to-excel-into-one-sheet/m-p/368186#M1178843</guid>
      <dc:creator />
      <dc:date>2012-03-26T08:13:01Z</dc:date>
    </item>
  </channel>
</rss>

