<?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 data to an existing xls in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-data-to-an-existing-xls/m-p/291326#M1202868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Things are easier if one uses CSV instead of Excel.&lt;/P&gt;&lt;P&gt;So export to file2.csv, and concatenate it to file1.csv with command line:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;copy file1.csv+file2.csv concat.csv&lt;/P&gt;&lt;P&gt;-Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Nov 2010 09:48:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-11-30T09:48:27Z</dc:date>
    <item>
      <title>Export data to an existing xls</title>
      <link>https://community.qlik.com/t5/QlikView/Export-data-to-an-existing-xls/m-p/291325#M1202867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am exporting data from qlikview to an excel.(Please see the below code)&lt;/P&gt;&lt;P&gt;The below code is moving the data to an excel sheet "Book1.xls".&lt;/P&gt;&lt;P&gt;&lt;B&gt;BUT i want to move the data to an existing xls(Data.xls) which is present on my desktop.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;How to do that .. Please help me with by modifying the below data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;set XLApp = CreateObject("Excel.Application")&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;I&gt;XLApp.Visible = True&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;I&gt;set XLDoc = XLApp.Workbooks.Add&lt;/I&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;set table = ActiveDocument.GetSheetObject("CH1107")&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;I&gt;set XLSheet = XLDoc.Worksheets(1)&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;I&gt;tb1.CopyTableToClipboard true&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;I&gt;XLSheet.Paste XLSheet.Range("A5")&lt;/I&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 08:12:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-data-to-an-existing-xls/m-p/291325#M1202867</guid>
      <dc:creator />
      <dc:date>2010-11-30T08:12:45Z</dc:date>
    </item>
    <item>
      <title>Export data to an existing xls</title>
      <link>https://community.qlik.com/t5/QlikView/Export-data-to-an-existing-xls/m-p/291326#M1202868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Things are easier if one uses CSV instead of Excel.&lt;/P&gt;&lt;P&gt;So export to file2.csv, and concatenate it to file1.csv with command line:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;copy file1.csv+file2.csv concat.csv&lt;/P&gt;&lt;P&gt;-Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 09:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-data-to-an-existing-xls/m-p/291326#M1202868</guid>
      <dc:creator />
      <dc:date>2010-11-30T09:48:27Z</dc:date>
    </item>
    <item>
      <title>Export data to an existing xls</title>
      <link>https://community.qlik.com/t5/QlikView/Export-data-to-an-existing-xls/m-p/291327#M1202870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexandru,&lt;/P&gt;&lt;P&gt;Thanks for ur suggestion...&lt;/P&gt;&lt;P&gt;I am very new to qlikview so i dont know how to do that...Can you please change my code wrt a csv file:&lt;/P&gt;&lt;P&gt;i want the data to be exported from qlikview to an existing csv file(lets say that file is data.csv and it is present on my desktop)&lt;/P&gt;&lt;P&gt;I am totally stuck ... please help me with this..:(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;set XLApp = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;I&gt;XLApp.Visible = True&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;I&gt;set XLDoc = XLApp.Workbooks.Add&lt;/I&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;set table = ActiveDocument.GetSheetObject("CH1107")&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;I&gt;set XLSheet = XLDoc.Worksheets(1)&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;I&gt;tb1.CopyTableToClipboard true&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;I&gt;XLSheet.Paste XLSheet.Range("A5")&lt;/I&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 08:33:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-data-to-an-existing-xls/m-p/291327#M1202870</guid>
      <dc:creator />
      <dc:date>2010-12-01T08:33:56Z</dc:date>
    </item>
    <item>
      <title>Export data to an existing xls</title>
      <link>https://community.qlik.com/t5/QlikView/Export-data-to-an-existing-xls/m-p/291328#M1202871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;If you're still wanting the Excel route; the below code should do the trick for you:&lt;BR /&gt;&lt;BR /&gt;Sub Excel_Table_Export&lt;BR /&gt;&lt;BR /&gt; set XLApp = CreateObject("Excel.Application")&lt;BR /&gt; set XLDOC = XLApp.Workbooks.Open ("C:\Data.xlsx") 'obviously you can change the location/name as necessary&lt;BR /&gt; XLApp.Visible = True&lt;BR /&gt; Const XLPasteValues = -4163&lt;BR /&gt;&lt;BR /&gt; set s=ActiveDocument.Sheets("Exports") 'Exports is the name of my Qvw tab so you need to change to wherever your object CH1107 resides&lt;BR /&gt; ActiveDocument.Sheets("Exports").Activate&lt;BR /&gt; ActiveDocument.ClearCache&lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt; ActiveDocument.GetSheetObject("CH1107").Restore&lt;BR /&gt; ActiveDocument.GetSheetObject("CH1107").CopyTableToClipboard true&lt;BR /&gt; set XLSheet = XLDOC.Worksheets("Sheet1") ' again this could be any worksheet name in your 'Data.xls'&lt;BR /&gt; XLSheet.Paste XLSheet.Range("A5")&lt;BR /&gt; XLSheet.Cells.EntireColumn.AutoFit&lt;BR /&gt; ActiveDocument.GetSheetObject("CH1107").Minimize&lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt; ActiveDocument.ClearCache&lt;BR /&gt;&lt;BR /&gt; XLSheet.SaveAs "C:\Data.xlsx"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; set XLApp = Nothing&lt;BR /&gt; set XLDOC = Nothing&lt;BR /&gt; set XLSheet = Nothing&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;Jon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 10:51:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-data-to-an-existing-xls/m-p/291328#M1202871</guid>
      <dc:creator />
      <dc:date>2010-12-01T10:51:53Z</dc:date>
    </item>
    <item>
      <title>Export data to an existing xls</title>
      <link>https://community.qlik.com/t5/QlikView/Export-data-to-an-existing-xls/m-p/291329#M1202872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome...&lt;/P&gt;&lt;P&gt;Thanks a lot Jon... It is working perfectly....&lt;/P&gt;&lt;P&gt;U have solved a very big problem for me....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 11:14:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-data-to-an-existing-xls/m-p/291329#M1202872</guid>
      <dc:creator />
      <dc:date>2010-12-01T11:14:14Z</dc:date>
    </item>
  </channel>
</rss>

