<?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 Need to write macro for exporting data in excel. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-to-write-macro-for-exporting-data-in-excel/m-p/515461#M192467</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;&lt;/P&gt;&lt;P&gt;I need to write a macro to export data in excel. Here is my requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I ave created 10 bookmarks on different selection.&lt;/P&gt;&lt;P&gt;2. Now I want to export the data sapretly (with respect to bookmark) in excel sheet.&lt;/P&gt;&lt;P&gt;3. All the data should come in one excel but in different sheets (i.e in all the 10 bookmarks data in different 10 shet of same excel).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help will be highly appriciated !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;D J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Sep 2013 12:28:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-12T12:28:54Z</dc:date>
    <item>
      <title>Need to write macro for exporting data in excel.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-write-macro-for-exporting-data-in-excel/m-p/515461#M192467</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;&lt;/P&gt;&lt;P&gt;I need to write a macro to export data in excel. Here is my requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I ave created 10 bookmarks on different selection.&lt;/P&gt;&lt;P&gt;2. Now I want to export the data sapretly (with respect to bookmark) in excel sheet.&lt;/P&gt;&lt;P&gt;3. All the data should come in one excel but in different sheets (i.e in all the 10 bookmarks data in different 10 shet of same excel).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help will be highly appriciated !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;D J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 12:28:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-write-macro-for-exporting-data-in-excel/m-p/515461#M192467</guid>
      <dc:creator />
      <dc:date>2013-09-12T12:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need to write macro for exporting data in excel.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-write-macro-for-exporting-data-in-excel/m-p/515462#M192468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this discussion for using bookmarks in macro's : &lt;A _jive_internal="true" href="https://community.qlik.com/thread/74046"&gt;http://community.qlik.com/thread/74046&lt;/A&gt;&lt;/P&gt;&lt;P&gt;See this blog post for exporting to excel with macro's: &lt;A href="http://www.qlikblog.at/971/qliktip-32-exporting-multiple-objects-single-excel-document/"&gt;http://www.qlikblog.at/971/qliktip-32-exporting-multiple-objects-single-excel-document/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 17:00:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-write-macro-for-exporting-data-in-excel/m-p/515462#M192468</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-09-12T17:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need to write macro for exporting data in excel.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-write-macro-for-exporting-data-in-excel/m-p/515463#M192469</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 have tried this but it's not working for me. And while trying to create a excel file I am getting the following error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR:-&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ActiveX component can't create object: 'Excel.Application' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following code to create excel&lt;/P&gt;&lt;P&gt;CODE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sub ExcelExpwCaption &lt;BR /&gt;'Set the path where the excel will be saved&lt;BR /&gt;filePath = "C:\Test.xls" &lt;BR /&gt;'Create the Excel spreadsheet &lt;BR /&gt;Set excelFile = CreateObject("Excel.Application")&lt;BR /&gt;excelFile.Visible = true&lt;BR /&gt;'Create the WorkBook&lt;BR /&gt;Set curWorkBook = excelFile.WorkBooks.Add &lt;BR /&gt;'Create the Sheet &lt;BR /&gt;Set curSheet = curWorkBook.WorkSheets(1) &lt;BR /&gt;'Get the chart we want to export &lt;BR /&gt;Set tableToExport = ActiveDocument.GetSheetObject("CH01") &lt;BR /&gt;Set chartProperties = tableToExport.GetProperties &lt;BR /&gt;tableToExport.CopyTableToClipboard true &lt;BR /&gt;'Get the caption &lt;BR /&gt;chartCaption = tableToExport.GetCaption.Name.v &lt;BR /&gt;'MsgBox chartCaption &lt;BR /&gt;'Set the first cell with the caption&lt;BR /&gt;curSheet.Range("A1") = chartCaption &lt;BR /&gt;'Paste the rest of the chart &lt;BR /&gt;curSheet.Paste curSheet.Range("A2") &lt;BR /&gt;excelFile.Visible = true &lt;BR /&gt;'Save the file and quit excel &lt;BR /&gt;curWorkBook.SaveAs filePath &lt;BR /&gt;curWorkBook.Close &lt;BR /&gt;excelFile.Quit&lt;BR /&gt;'Cleanup &lt;BR /&gt;Set curWorkBook = nothing &lt;BR /&gt;Set excelFile = nothing &lt;BR /&gt;End Sub &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 05:53:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-write-macro-for-exporting-data-in-excel/m-p/515463#M192469</guid>
      <dc:creator />
      <dc:date>2013-09-13T05:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need to write macro for exporting data in excel.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-write-macro-for-exporting-data-in-excel/m-p/515464#M192470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi follow this post &lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/83200"&gt;http://community.qlik.com/thread/83200&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 06:36:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-write-macro-for-exporting-data-in-excel/m-p/515464#M192470</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2013-09-13T06:36:52Z</dc:date>
    </item>
  </channel>
</rss>

