<?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 Copy the Values to an Excel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Copy-the-Values-to-an-Excel/m-p/289459#M1200336</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you just trying to send a tablebox to Excel?? This will work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;set obj = ActiveDocument.GetSheetObject("CH1106")&lt;BR /&gt;obj.SendToExcel&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;If you want to modify formatting, you can paste into particular cells, etc:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;SET XLApp = CreateObject("Excel.Application")&lt;BR /&gt;SET XLDoc = XLApp.Workbooks.Add&lt;BR /&gt;SET XLSheet = XLDoc.Worksheets(1)&lt;BR /&gt;ActiveDocument.GetSheetObject("CH1106").CopyTableToClipboard true&lt;BR /&gt;XLSheet.Paste XLSheet.Range("B1")&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Nov 2010 19:17:52 GMT</pubDate>
    <dc:creator>vgutkovsky</dc:creator>
    <dc:date>2010-11-22T19:17:52Z</dc:date>
    <item>
      <title>Copy the Values to an Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-the-Values-to-an-Excel/m-p/289458#M1200335</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;Below I have given a Piece of code :&lt;/P&gt;&lt;P&gt;The Code picks the values from a qvw file and stores it in an Two Dimensional Array.&lt;/P&gt;&lt;P&gt;Now what i want is to send those values to an excel File.Currently I am displaying it in Msg Box&lt;/P&gt;&lt;P&gt;Can any one please let me know how to do that wrt the below given Code.&lt;/P&gt;&lt;P&gt;I want to export all the values which i have stored in the array to only one excel..&lt;/P&gt;&lt;P&gt;Please help i totally stuck.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub newr&lt;/P&gt;&lt;P&gt;set TableBox = ActiveDocument.GetSheetObject( "CH1106" )&lt;/P&gt;&lt;P&gt;Dim testArray(2,7)&lt;/P&gt;&lt;P&gt;for Row = 1 to TableBox.GetRowCount-1&lt;/P&gt;&lt;P&gt;for Col = 1 to TableBox.GetColumnCount-1&lt;/P&gt;&lt;P&gt;set cell = TableBox.GetCell(Row,Col)&lt;/P&gt;&lt;P&gt;testArray(Row,Col) = cell.Text&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;for Row = 1 to TableBox.GetRowCount-1&lt;/P&gt;&lt;P&gt;for Col = 1 to TableBox.GetColumnCount-1&lt;/P&gt;&lt;P&gt;qvlib.MsgBox(Row)&lt;/P&gt;&lt;P&gt;qvlib.MsgBox(Col)&lt;/P&gt;&lt;P&gt;msgbox(testArray(Row,Col))&lt;/P&gt;&lt;P&gt;next&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;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 12:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-the-Values-to-an-Excel/m-p/289458#M1200335</guid>
      <dc:creator />
      <dc:date>2010-11-22T12:48:39Z</dc:date>
    </item>
    <item>
      <title>Copy the Values to an Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-the-Values-to-an-Excel/m-p/289459#M1200336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you just trying to send a tablebox to Excel?? This will work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;set obj = ActiveDocument.GetSheetObject("CH1106")&lt;BR /&gt;obj.SendToExcel&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;If you want to modify formatting, you can paste into particular cells, etc:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;SET XLApp = CreateObject("Excel.Application")&lt;BR /&gt;SET XLDoc = XLApp.Workbooks.Add&lt;BR /&gt;SET XLSheet = XLDoc.Worksheets(1)&lt;BR /&gt;ActiveDocument.GetSheetObject("CH1106").CopyTableToClipboard true&lt;BR /&gt;XLSheet.Paste XLSheet.Range("B1")&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 19:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-the-Values-to-an-Excel/m-p/289459#M1200336</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-11-22T19:17:52Z</dc:date>
    </item>
    <item>
      <title>Copy the Values to an Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-the-Values-to-an-Excel/m-p/289460#M1200337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vlad Thanks for replying,&lt;/P&gt;&lt;P&gt;But my problem is not solved completely&lt;/P&gt;&lt;P&gt;The code which you have suggested will copy the complete data in "CH1106" row to the excel.&lt;/P&gt;&lt;P&gt;Actually the row contains numeric values as well as some charts also.I do not not want the charts to be copied to the excel.I just wanted the Numeric values copied to the excel.&lt;/P&gt;&lt;P&gt;That is why i moved the data to a two dimensional array so that i can copy only those values to an excel which i need...&lt;/P&gt;&lt;P&gt;Can you please help me ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Nov 2010 06:01:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-the-Values-to-an-Excel/m-p/289460#M1200337</guid>
      <dc:creator />
      <dc:date>2010-11-23T06:01:33Z</dc:date>
    </item>
    <item>
      <title>Copy the Values to an Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-the-Values-to-an-Excel/m-p/289461#M1200338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vlad ,&lt;/P&gt;&lt;P&gt;I am attaching a screen shot of the data as it is present in qlikview file which i need to move to an axcel.&lt;/P&gt;&lt;P&gt;Also can i move the data to a excel sheet of my choice.I have an excel sheet named "test.xls" which contains some data already.Now I want to move the data to this excel only and not any default excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code as you suggested :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Excel App&lt;/P&gt;&lt;P&gt;set XLApp = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;XLApp.Visible = True 'Visible set as true&lt;/P&gt;&lt;P&gt;set XLDoc = XLApp.Workbooks.Add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set table = ActiveDocument.GetSheetObject("CH1107")&lt;/P&gt;&lt;P&gt;set XLSheet = XLDoc.Worksheets(1)&lt;/P&gt;&lt;P&gt;table.CopyTableToClipboard true&lt;/P&gt;&lt;P&gt;XLSheet.Paste XLSheet.Range("A1")&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;This code is working fine and copying the complete data present in CH1106 to an default excel but i want to move it to "Test.xls"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Nov 2010 06:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-the-Values-to-an-Excel/m-p/289461#M1200338</guid>
      <dc:creator />
      <dc:date>2010-11-23T06:13:39Z</dc:date>
    </item>
    <item>
      <title>Copy the Values to an Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-the-Values-to-an-Excel/m-p/289462#M1200339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well if you only need some of the columns, just create a 2nd sheet object with only those columns you need. Make sure that object is always hidden and set that as the export object ID. Note that you may need to unhide it in your VBScript right before you export and rehide afterwards because I've seen exports fail without that step. An easy way to do this is to hide the object based on a "hider" variable that your VBScript would then change right before the export (and change back afterwards).&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Nov 2010 16:55:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-the-Values-to-an-Excel/m-p/289462#M1200339</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-11-23T16:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Copy the Values to an Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-the-Values-to-an-Excel/m-p/289463#M1200340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to save this file in my local directory , how can i do this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 07:13:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-the-Values-to-an-Excel/m-p/289463#M1200340</guid>
      <dc:creator>agni_gold</dc:creator>
      <dc:date>2014-01-03T07:13:54Z</dc:date>
    </item>
  </channel>
</rss>

