<?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: How toexport a single Chart from QLV to Excel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-toexport-a-single-Chart-from-QLV-to-Excel/m-p/582325#M1109423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one more to look at it... &lt;A href="http://luciancotea.wordpress.com/2013/07/18/qlikview-macros-useful-collection/" title="http://luciancotea.wordpress.com/2013/07/18/qlikview-macros-useful-collection/"&gt;http://luciancotea.wordpress.com/2013/07/18/qlikview-macros-useful-collection/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Mar 2014 11:27:18 GMT</pubDate>
    <dc:creator>manojkulkarni</dc:creator>
    <dc:date>2014-03-17T11:27:18Z</dc:date>
    <item>
      <title>How toexport a single Chart from QLV to Excel</title>
      <link>https://community.qlik.com/t5/QlikView/How-toexport-a-single-Chart-from-QLV-to-Excel/m-p/582323#M1109421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning everyone!&lt;/P&gt;&lt;P&gt;I'm a new user of VB and it's the first time I write a macro in QLV. I have (as you will see the attachment) a chart, that I would like to export in an excel file. When used, the macro must to export the chart and to update the already existing file rather than delete it and create a new one. That's what I have done so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub Excel &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nomefile = "C:\E_APPOGGIO\PROVAPROVA.xlsx"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set FSO = CreateObject("Scripting.FileSystemObject")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If FSO.FileExists(nomefile) = True Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FSO.DeleteFile nomefile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set FSO = Nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set XLApp = CreateObject("Excel.Application")&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;'since a few days, though, I could not run this macro anymore as it gives me&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; an error on this line when I debug&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; XLapp.Visible = true&lt;/P&gt;&lt;P&gt;&amp;nbsp; set XLDOC = XLApp.Workbooks.Add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; XLDoc.Sheets(1).name = "Export"&lt;/P&gt;&lt;P&gt;&amp;nbsp; set XLSheet = XLDoc.Worksheets(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp; set myTable = ActiveDocument.GetSheetObject("CH01")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set XLSheet = XLDoc.Worksheets(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Mytable.CopyTableToClipboard true&lt;/P&gt;&lt;P&gt;&amp;nbsp; XLSheet.Paste XLSheet.Range("A1")&lt;/P&gt;&lt;P&gt;&amp;nbsp; XLSheet.Cells.Entirerow.AutoFit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; XLSheet.saveas nomefile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set XLSheet = nothing&lt;/P&gt;&lt;P&gt;&amp;nbsp; XLDOC.close&lt;/P&gt;&lt;P&gt;&amp;nbsp; set XLDOC = nothing&lt;/P&gt;&lt;P&gt;&amp;nbsp; XLApp.quit&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set XLApp = nothing&lt;/P&gt;&lt;P&gt;&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;I hope I have been enough clear and that someone could help me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 11:21:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-toexport-a-single-Chart-from-QLV-to-Excel/m-p/582323#M1109421</guid>
      <dc:creator />
      <dc:date>2014-03-17T11:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: How toexport a single Chart from QLV to Excel</title>
      <link>https://community.qlik.com/t5/QlikView/How-toexport-a-single-Chart-from-QLV-to-Excel/m-p/582324#M1109422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this link, might solve your issue.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/80672"&gt;Qlikview to excel export macro&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 11:25:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-toexport-a-single-Chart-from-QLV-to-Excel/m-p/582324#M1109422</guid>
      <dc:creator>manojkulkarni</dc:creator>
      <dc:date>2014-03-17T11:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: How toexport a single Chart from QLV to Excel</title>
      <link>https://community.qlik.com/t5/QlikView/How-toexport-a-single-Chart-from-QLV-to-Excel/m-p/582325#M1109423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one more to look at it... &lt;A href="http://luciancotea.wordpress.com/2013/07/18/qlikview-macros-useful-collection/" title="http://luciancotea.wordpress.com/2013/07/18/qlikview-macros-useful-collection/"&gt;http://luciancotea.wordpress.com/2013/07/18/qlikview-macros-useful-collection/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 11:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-toexport-a-single-Chart-from-QLV-to-Excel/m-p/582325#M1109423</guid>
      <dc:creator>manojkulkarni</dc:creator>
      <dc:date>2014-03-17T11:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: How toexport a single Chart from QLV to Excel</title>
      <link>https://community.qlik.com/t5/QlikView/How-toexport-a-single-Chart-from-QLV-to-Excel/m-p/582326#M1109424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have already seen this post and I have tried to use it for my case, but I dont' think it's what I need. 1. I don't have any other data on the excel sheet where I want to export 2. I need also the headers of the chart I need to export&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 11:31:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-toexport-a-single-Chart-from-QLV-to-Excel/m-p/582326#M1109424</guid>
      <dc:creator />
      <dc:date>2014-03-17T11:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: How toexport a single Chart from QLV to Excel</title>
      <link>https://community.qlik.com/t5/QlikView/How-toexport-a-single-Chart-from-QLV-to-Excel/m-p/582327#M1109425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry to bother you Manoj K but you are proposing me data that I have already found in the web! It's 2 days I'm looking for a piece of code that could suit me. The only solution I always find to my problem is the application.displayalerts=false and True.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They don't solve my problem! as the message ok, doesn't appear, but a new excel file is created! I need to overwrite my PROVAPROVA file!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 15:23:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-toexport-a-single-Chart-from-QLV-to-Excel/m-p/582327#M1109425</guid>
      <dc:creator />
      <dc:date>2014-03-17T15:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: How toexport a single Chart from QLV to Excel</title>
      <link>https://community.qlik.com/t5/QlikView/How-toexport-a-single-Chart-from-QLV-to-Excel/m-p/582328#M1109426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try the following syntax, which uses the built in API to export the file in BIFF format.&amp;nbsp; It is the older xls format, but might help you.&amp;nbsp;&amp;nbsp; It doesn't rename the standard "sheet1" name though, so if that is important this won't help you.&amp;nbsp;&amp;nbsp; Make sure that your macro security settings allow the required permissions to access system resources.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub SendToBiff&lt;/P&gt;&lt;P&gt;set obj = ActiveDocument.GetSheetObject("CH01")&lt;/P&gt;&lt;P&gt;obj.ExportBiff "C:\test.xls"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 15:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-toexport-a-single-Chart-from-QLV-to-Excel/m-p/582328#M1109426</guid>
      <dc:creator>Greg_Hood</dc:creator>
      <dc:date>2014-03-17T15:38:22Z</dc:date>
    </item>
  </channel>
</rss>

