<?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 Re: Export data to excel - Automatically or in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-data-to-excel-Automatically-or-in-script/m-p/377813#M1168889</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This link may be a good starting point. You can adjust the code to export your reports as needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/242735#242735"&gt;http://community.qlik.com/message/242735#242735&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2012 17:08:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-14T17:08:33Z</dc:date>
    <item>
      <title>Export data to excel - Automatically or in script</title>
      <link>https://community.qlik.com/t5/QlikView/Export-data-to-excel-Automatically-or-in-script/m-p/377812#M1168888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How would I go about automating exportign data to excel from multiple tables. I have a complex dashboard that profiles customers and say after I selected a specific group of customers I wanted to export the data for all charts to excel, maybe to develop a powerpoint presentation as printed reports are not that good in Qview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone share some sample code,and also where would I type that code into and how would it launch? I see that a button can have actions but the export does not seem to allow excel, it appears the button can trigger code - is this how I would do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 14:49:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-data-to-excel-Automatically-or-in-script/m-p/377812#M1168888</guid>
      <dc:creator />
      <dc:date>2012-08-14T14:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Export data to excel - Automatically or in script</title>
      <link>https://community.qlik.com/t5/QlikView/Export-data-to-excel-Automatically-or-in-script/m-p/377813#M1168889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This link may be a good starting point. You can adjust the code to export your reports as needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/242735#242735"&gt;http://community.qlik.com/message/242735#242735&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 17:08:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-data-to-excel-Automatically-or-in-script/m-p/377813#M1168889</guid>
      <dc:creator />
      <dc:date>2012-08-14T17:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Export data to excel - Automatically or in script</title>
      <link>https://community.qlik.com/t5/QlikView/Export-data-to-excel-Automatically-or-in-script/m-p/377814#M1168890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to do it in a test way, as follows which may be similar to what you suggeted (I can't see the qvw as for now I have an evaluation version). The code is modified abit from somethign I found, it adds a prompt for the location to save it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub to_excel&lt;/P&gt;&lt;P&gt;Dim wsname&lt;/P&gt;&lt;P&gt;Set XLApp = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;XLApp.Visible = TRUE&lt;/P&gt;&lt;P&gt;Set XLDoc = XLApp.Workbooks.Add&lt;/P&gt;&lt;P&gt;wsname = ""&lt;/P&gt;&lt;P&gt;wsname = "Sheet1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;strFileName = InputBox("Enter Path and File Name (from My Documents)", "Enter Path and Filename", defaultValue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;strFileName = "C:\Documents and Settings\ewnym5s\My Documents\" &amp;amp; strFileName&lt;/P&gt;&lt;P&gt;ActiveDocument.ClearAll &lt;/P&gt;&lt;P&gt;XLDoc.Sheets(wsname).activate&lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("CH23").CopyTableToClipboard true&lt;/P&gt;&lt;P&gt;XLDoc.Sheets(wsname).Range("A" &amp;amp; 1).Select&lt;/P&gt;&lt;P&gt;XLDoc.Sheets(wsname).Paste&lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wsname = "Sheet2"&lt;/P&gt;&lt;P&gt;XLDoc.Sheets(wsname).activate&lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("CH34").CopyTableToClipboard true&lt;/P&gt;&lt;P&gt;XLDoc.Sheets(wsname).Range("A" &amp;amp; 1).Select&lt;/P&gt;&lt;P&gt;XLDoc.Sheets(wsname).Paste &lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XLDoc.SaveAs(strFileName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XLDoc.Close&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;I have a further question that is really a visual basic question, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not want to have 25 or 30 blocks of code one for each chart - that is what for next loops were invented for&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know in vb if you can and how to cycle through values that are not sequential (from a list like CH01, CH03, CH04) is that possible in your knowledge? can i ask how (as opposed to searching for it - whihc i admit is lazy)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, in qview, my charts are in multiple sheets, do I need to switch sheet to reference charts in another one or will qview find CHXX wherever it may be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 18:37:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-data-to-excel-Automatically-or-in-script/m-p/377814#M1168890</guid>
      <dc:creator />
      <dc:date>2012-08-14T18:37:38Z</dc:date>
    </item>
  </channel>
</rss>

