<?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 to excel with chart header. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572340#M213247</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alessandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you find it please share, I looked for this requirement extensively a few months ago and I could not export the Caption nor could I find the answer in the forum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Apr 2014 09:42:32 GMT</pubDate>
    <dc:creator>rustyfishbones</dc:creator>
    <dc:date>2014-04-29T09:42:32Z</dc:date>
    <item>
      <title>Export to excel with chart header.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572332#M213239</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;In my chart export to excel, i need chart header line also in excel result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any one know the answer kindly post. it's achieve in macro is possible ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Muni.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 07:05:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572332#M213239</guid>
      <dc:creator>muniyandi</dc:creator>
      <dc:date>2014-04-29T07:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel with chart header.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572333#M213240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you export a chart to excel by default headers are added .... from where do you export?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 07:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572333#M213240</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-04-29T07:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel with chart header.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572334#M213241</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;Chart Window title Caption need. Alessandro. i was wrongly mentioned header.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 08:25:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572334#M213241</guid>
      <dc:creator>muniyandi</dc:creator>
      <dc:date>2014-04-29T08:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel with chart header.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572335#M213242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you have to write a macro. Search the forum for it, there is a lot of examples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 08:34:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572335#M213242</guid>
      <dc:creator>jerrysvensson</dc:creator>
      <dc:date>2014-04-29T08:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel with chart header.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572336#M213243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot export the Caption, I have tried this before&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 08:36:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572336#M213243</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-04-29T08:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel with chart header.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572337#M213244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create a text object and make it look similar to the Caption, but you cannot export the Caption&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 08:37:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572337#M213244</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-04-29T08:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel with chart header.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572338#M213245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry but I disagree, you may export the Caption of a chart and its content as xls by macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look for it in forum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 09:11:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572338#M213245</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-04-29T09:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel with chart header.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572339#M213246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Post some sample macro for my requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 09:29:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572339#M213246</guid>
      <dc:creator>muniyandi</dc:creator>
      <dc:date>2014-04-29T09:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel with chart header.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572340#M213247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alessandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you find it please share, I looked for this requirement extensively a few months ago and I could not export the Caption nor could I find the answer in the forum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 09:42:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572340#M213247</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-04-29T09:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel with chart header.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572341#M213248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Mathew, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the below macro.&lt;/P&gt;&lt;P&gt;Credits to Ravi Kumar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/50910"&gt;How to export to Excel include Title Caption?&lt;/A&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;Cheers,&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 09:52:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572341#M213248</guid>
      <dc:creator>NareshGuntur</dc:creator>
      <dc:date>2014-04-29T09:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel with chart header.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572342#M213249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here it is and it works!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub HeaderShow&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim aryExport(0,4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Get the chart we want to export&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set tableToExport = ActiveDocument.GetSheetObject("CHTOT02")&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set chartProperties = tableToExport.GetProperties&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tableToExport.CopyTableToClipboard true&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Get the caption&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; chartCaption = tableToExport.GetCaption.Name.v&amp;nbsp; &lt;/P&gt;&lt;P&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox chartCaption&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; aryExport(0,0) = "CHTOT02"&lt;/P&gt;&lt;P&gt;&amp;nbsp; aryExport(0,1) = chartCaption&lt;/P&gt;&lt;P&gt;&amp;nbsp; aryExport(0,2) = "A2"&lt;/P&gt;&lt;P&gt;&amp;nbsp; aryExport(0,3) = "data"&lt;/P&gt;&lt;P&gt;&amp;nbsp; aryExport(0,4) = "A1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim objExcelWorkbook 'as Excel.Workbook&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set objExcelWorkbook = copyObjectsToExcelSheet(ActiveDocument, aryExport)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ''// Now either just leave Excel open or do some other stuff here&lt;/P&gt;&lt;P&gt;&amp;nbsp; ''// like saving the excel, some formatting stuff, ...&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;P&gt;'// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;'// YOU DO NOT NEED TO CHANGE THE CODE BELOW !!!!!!!!!!!!!!!!!!!!!!!&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;P&gt;&lt;/P&gt;&lt;P&gt;'// ****************************************************************&lt;/P&gt;&lt;P&gt;'// copyObjectsToExcel&lt;/P&gt;&lt;P&gt;'// ~~&lt;/P&gt;&lt;P&gt;'// Parameters:&lt;/P&gt;&lt;P&gt;'// qvDoc - Reference to the QlikView document (normally just use&lt;/P&gt;&lt;P&gt;'// "ActiveDocument", but you can also use copyObjectsToExcel&lt;/P&gt;&lt;P&gt;'// outside of QlikView ...&lt;/P&gt;&lt;P&gt;'// aryExportDefinition - array of settings&lt;/P&gt;&lt;P&gt;'// ~~&lt;/P&gt;&lt;P&gt;'// Version 1.02&lt;/P&gt;&lt;P&gt;'// ~~&lt;/P&gt;&lt;P&gt;'// The aryExportDefinition is used to pass the following properties to &lt;/P&gt;&lt;P&gt;'// copyObjectsToExcelSheet:&lt;/P&gt;&lt;P&gt;'//&lt;/P&gt;&lt;P&gt;'//&amp;nbsp;&amp;nbsp; Index Description&lt;/P&gt;&lt;P&gt;'// ------------------------&lt;/P&gt;&lt;P&gt;'// 0 - Id of the QlikView object to copy from&lt;/P&gt;&lt;P&gt;'// 1 - Name of the sheet (in Excel) where the object should be copied to&lt;/P&gt;&lt;P&gt;'//&lt;/P&gt;&lt;P&gt;'// (If a sheet with the same name already exists no new &lt;/P&gt;&lt;P&gt;'// sheet will be created, instead the existing sheet will &lt;/P&gt;&lt;P&gt;'// be used for pasting the object)&lt;/P&gt;&lt;P&gt;'//&lt;/P&gt;&lt;P&gt;'// Note: the sheetName can be max 31 characters long&lt;/P&gt;&lt;P&gt;'// &lt;/P&gt;&lt;P&gt;'// 2 - Range in Excel where the object should be pasted to&lt;/P&gt;&lt;P&gt;'// 3 - PasteMode ["data", "image"]&lt;/P&gt;&lt;P&gt;'// Defines if the objects underlaying data should be &lt;/P&gt;&lt;P&gt;'// pasted ("data") or the the image representing the object&lt;/P&gt;&lt;P&gt;'// should be used&lt;/P&gt;&lt;P&gt;'// Introdotto da A.Saccone&lt;/P&gt;&lt;P&gt;'// 4 - Range in Excel where object's caption should be pasted&lt;/P&gt;&lt;P&gt;'// ****************************************************************&lt;/P&gt;&lt;P&gt;Private Function copyObjectsToExcelSheet(qvDoc, aryExportDefinition) 'as Excel.Workbook&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;P&gt;Dim i 'as Integer&lt;/P&gt;&lt;P&gt;Dim objExcelApp 'as Excel.Application&lt;/P&gt;&lt;P&gt;Dim objExcelDoc 'as Excel.Workbook&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set objExcelApp = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objExcelApp.Visible = true 'false if you want to hide Excel&lt;/P&gt;&lt;P&gt;objExcelApp.DisplayAlerts = false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Set objExcelDoc = objExcelApp.Workbooks.Add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim strSourceObject&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim qvObjectId 'as String &lt;/P&gt;&lt;P&gt;Dim sheetName&lt;/P&gt;&lt;P&gt;Dim sheetRange&lt;/P&gt;&lt;P&gt;Dim pasteMode&lt;/P&gt;&lt;P&gt;Dim objSource&lt;/P&gt;&lt;P&gt;Dim objCurrentSheet&lt;/P&gt;&lt;P&gt;Dim objExcelSheet&lt;/P&gt;&lt;P&gt;Dim sheetRangeCapt&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i = 0 to UBOUND(aryExportDefinition)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; '// Get the properties of the exportDefinition array&lt;/P&gt;&lt;P&gt;&amp;nbsp; qvObjectId = aryExportDefinition(i,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp; sheetName = aryExportDefinition(i,1)&lt;/P&gt;&lt;P&gt;&amp;nbsp; sheetRange = aryExportDefinition(i,2)&lt;/P&gt;&lt;P&gt;&amp;nbsp; pasteMode = aryExportDefinition(i,3)&lt;/P&gt;&lt;P&gt;&amp;nbsp; sheetRangeCapt = aryExportDefinition(i,4)&lt;/P&gt;&lt;P&gt;&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; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Set objExcelSheet = Excel_GetSheetByName(objExcelDoc, sheetName)&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (objExcelSheet is nothing) then&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set objExcelSheet = Excel_AddSheet(objExcelApp, sheetName)&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (objExcelSheet is nothing) then&lt;/P&gt;&lt;P&gt;&amp;nbsp; msgbox("No sheet could be created, this should not occur!!!")&lt;/P&gt;&lt;P&gt;&amp;nbsp; end if&lt;/P&gt;&lt;P&gt;&amp;nbsp; end if&lt;/P&gt;&lt;P&gt;&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; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; objExcelSheet.Select&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set objSource = qvDoc.GetSheetObject(qvObjectId)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Call objSource.GetSheet().Activate()&lt;/P&gt;&lt;P&gt;&amp;nbsp; objSource.Maximize&lt;/P&gt;&lt;P&gt;&amp;nbsp; qvDoc.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (not objSource is nothing) then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (pasteMode = "image") then&lt;/P&gt;&lt;P&gt;&amp;nbsp; Call objSource.CopyBitmapToClipboard()&lt;/P&gt;&lt;P&gt;&amp;nbsp; else&lt;/P&gt;&lt;P&gt;&amp;nbsp; Call objSource.CopyTableToClipboard(true) '// default &amp;amp; fallback&lt;/P&gt;&lt;P&gt;&amp;nbsp; end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set objCurrentSheet = objExcelDoc.Sheets(sheetName)&lt;/P&gt;&lt;P&gt;&amp;nbsp; objExcelDoc.Sheets(sheetName).Range(sheetRange).Select&lt;/P&gt;&lt;P&gt;&amp;nbsp; objExcelDoc.Sheets(sheetName).Paste&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Inserimento del Caption dell'oggetto&lt;/P&gt;&lt;P&gt;&amp;nbsp; chartCaption = objSource.GetCaption.Name.v&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; objCurrentSheet.Range(sheetRangeCapt) = chartCaption&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (pasteMode &amp;lt;&amp;gt; "image") then&lt;/P&gt;&lt;P&gt;&amp;nbsp; With objExcelApp.Selection&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .WrapText = False&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .ShrinkToFit = False&lt;/P&gt;&lt;P&gt;&amp;nbsp; End With&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; &lt;/P&gt;&lt;P&gt;&amp;nbsp; end if&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; objCurrentSheet.Range("A1").Select&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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; &lt;/P&gt;&lt;P&gt;&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; &lt;/P&gt;&lt;P&gt;next&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call Excel_DeleteBlankSheets(objExcelDoc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'// Finally select the first sheet&lt;/P&gt;&lt;P&gt;objExcelDoc.Sheets(1).Select&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'// Return value&lt;/P&gt;&lt;P&gt;Set copyObjectsToExcelSheet = objExcelDoc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end function&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;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;'// Internal function for getting the Excel sheet by sheetName&lt;/P&gt;&lt;P&gt;'// ****************************************************************&lt;/P&gt;&lt;P&gt;Private Function Excel_GetSheetByName(ByRef objExcelDoc, sheetName) 'as Excel.Sheet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Each ws In objExcelDoc.Worksheets&lt;/P&gt;&lt;P&gt;&amp;nbsp; If (trim(ws.Name) = Excel_GetSafeSheetName(sheetName)) then&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set Excel_GetSheetByName = ws&lt;/P&gt;&lt;P&gt;&amp;nbsp; exit function&lt;/P&gt;&lt;P&gt;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'// default return value&lt;/P&gt;&lt;P&gt;Set Excel_GetSheetByName = nothing&lt;/P&gt;&lt;P&gt;&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; &lt;/P&gt;&lt;P&gt;End Function&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;P&gt;&lt;/P&gt;&lt;P&gt;Private Function Excel_GetSafeSheetName(sheetName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; '// can be max 31 characters long&lt;/P&gt;&lt;P&gt;&amp;nbsp; retVal = trim(left(sheetName, 31))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Excel_GetSafeSheetName = retVal&lt;/P&gt;&lt;P&gt;End Function&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'// ****************************************************************&lt;/P&gt;&lt;P&gt;'// Internal function for adding a new sheet&lt;/P&gt;&lt;P&gt;'// ****************************************************************&lt;/P&gt;&lt;P&gt;Private Function Excel_AddSheet(objExcelApplication, sheetName) ' as Excel.Sheet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; '// add a sheet to the last position&lt;/P&gt;&lt;P&gt;&amp;nbsp; objExcelApplication.Sheets.Add , objExcelApplication.Sheets(objExcelApplication.Sheets.Count)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim objNewSheet&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set objNewSheet = objExcelApplication.Sheets(objExcelApplication.Sheets.Count)&lt;/P&gt;&lt;P&gt;&amp;nbsp; objNewSheet.Name = left(sheetName,31)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; '// return the newly created sheet&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set Excel_AddSheet = objNewSheet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End function&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;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;'// Delete all empty sheets&lt;/P&gt;&lt;P&gt;'// ****************************************************************&lt;/P&gt;&lt;P&gt;Private Sub Excel_DeleteBlankSheets(ByRef objExcelDoc) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Each ws In objExcelDoc.Worksheets&lt;/P&gt;&lt;P&gt;&amp;nbsp; If (not HasOtherObjects(ws)) then&lt;/P&gt;&lt;P&gt;&amp;nbsp; If objExcelDoc.Application.WorksheetFunction.CountA(ws.Cells) = 0 Then&lt;/P&gt;&lt;P&gt;&amp;nbsp; On Error Resume Next&lt;/P&gt;&lt;P&gt;&amp;nbsp; Call ws.Delete()&lt;/P&gt;&lt;P&gt;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;Next &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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;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;/P&gt;&lt;P&gt;'// ****************************************************************&lt;/P&gt;&lt;P&gt;'// Helper function to determine if there are other objects placed&lt;/P&gt;&lt;P&gt;'// on the sheet ...&lt;/P&gt;&lt;P&gt;'// ****************************************************************&lt;/P&gt;&lt;P&gt;Public Function HasOtherObjects(ByRef objSheet) 'As Boolean &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (objSheet.ChartObjects.Count &amp;gt; 0) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HasOtherObjects = true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit function&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; If (objSheet.Pictures.Count &amp;gt; 0) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HasOtherObjects = true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit function&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; If (objSheet.Shapes.Count &amp;gt; 0) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HasOtherObjects = true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit function&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; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HasOtherObjects = false&lt;/P&gt;&lt;P&gt;End Function &lt;/P&gt;&lt;P&gt;'//__________________________________________________________________&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 10:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572342#M213249</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-04-29T10:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel with chart header.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572343#M213250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Getting Error on&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ActiveX component can't create object: 'Excel.Application'&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 11:32:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572343#M213250</guid>
      <dc:creator>muniyandi</dc:creator>
      <dc:date>2014-04-29T11:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel with chart header.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572344#M213251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Module Security should have been SAFE MODE there.&lt;/P&gt;&lt;P&gt;Please make it as System Access in both Requested Module Security and Current Local Security.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 11:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572344#M213251</guid>
      <dc:creator>NareshGuntur</dc:creator>
      <dc:date>2014-04-29T11:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel with chart header.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572345#M213252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mathew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did this solved your issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 05:42:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-excel-with-chart-header/m-p/572345#M213252</guid>
      <dc:creator>NareshGuntur</dc:creator>
      <dc:date>2014-04-30T05:42:52Z</dc:date>
    </item>
  </channel>
</rss>

