<?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 Macro to export Caption in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-export-Caption/m-p/183482#M48719</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;This gets the title of the chart:&lt;BR /&gt;set chart = ActiveDocument.GetSheetObject("CH_antalBreve")&lt;BR /&gt;set p = chart.GetProperties&lt;BR /&gt;msgbox(p.GraphLayout.WindowTitle.v)&lt;/P&gt;&lt;P&gt;Only works though if you set the title explicitly.&lt;/P&gt;&lt;P&gt;/Fredrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Mar 2010 12:57:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-17T12:57:37Z</dc:date>
    <item>
      <title>Macro to export Caption</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-Caption/m-p/183480#M48717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a macro which exports charts but I need it to also export the caption of the chart&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;sub export_actions&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;set v = ActiveDocument.Variables("QvWorkPath")&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;set XLApp = CreateObject("Excel.Application")&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;XLApp.Visible =true' false&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;set ExcelDoc = XLApp.Workbooks.Add&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;set obj1 = ActiveDocument.getsheetobject("CH_antalBreve")&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;obj1.CopyTableToClipboard true&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;ExcelDoc.Sheets(1).cells(1,1).select&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;ExcelDoc.Sheets(1).paste&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;ExcelDoc.Sheets(1).Rows("1:1").Font.Bold = True&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;set obj1 = nothing&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;ExcelDoc.Sheets(1).cells.select&lt;BR /&gt; ExcelDoc.Sheets(1).Cells.EntireRow.RowHeight = 12.75&lt;BR /&gt; ExcelDoc.Sheets(1).Cells.EntireColumn.AutoFit&lt;BR /&gt; ExcelDoc.Sheets(1).cells(1,1).select&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;XLApp.Visible = true&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;end sub&lt;/P&gt;&lt;P&gt;Anyone with a macro to export chart and who can incorporte it into the above ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 11:13:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-Caption/m-p/183480#M48717</guid>
      <dc:creator />
      <dc:date>2010-03-17T11:13:43Z</dc:date>
    </item>
    <item>
      <title>Macro to export Caption</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-Caption/m-p/183481#M48718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry - the last line should of course be&lt;/P&gt;&lt;P&gt;Anyone with a macro to export caption and who can incorporte it into the above ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 11:14:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-Caption/m-p/183481#M48718</guid>
      <dc:creator />
      <dc:date>2010-03-17T11:14:26Z</dc:date>
    </item>
    <item>
      <title>Macro to export Caption</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-Caption/m-p/183482#M48719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;This gets the title of the chart:&lt;BR /&gt;set chart = ActiveDocument.GetSheetObject("CH_antalBreve")&lt;BR /&gt;set p = chart.GetProperties&lt;BR /&gt;msgbox(p.GraphLayout.WindowTitle.v)&lt;/P&gt;&lt;P&gt;Only works though if you set the title explicitly.&lt;/P&gt;&lt;P&gt;/Fredrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 12:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-Caption/m-p/183482#M48719</guid>
      <dc:creator />
      <dc:date>2010-03-17T12:57:37Z</dc:date>
    </item>
    <item>
      <title>Macro to export Caption</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-Caption/m-p/183483#M48720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Fredrik but unfortunately thats not what I'm looking for. I want the caption/title to be exported together with the chart . Your suggestion gives me a message box with the title.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 13:03:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-Caption/m-p/183483#M48720</guid>
      <dc:creator />
      <dc:date>2010-03-17T13:03:35Z</dc:date>
    </item>
    <item>
      <title>Macro to export Caption</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-Caption/m-p/183484#M48721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, I misunderstood you.&lt;/P&gt;&lt;P&gt;I think what you're looking for is this:&lt;BR /&gt;Go to User preferences (Ctrl+Alt+U), the tab Export and make sure that the checkbox "Include caption and border" is checked for Charts.&lt;/P&gt;&lt;P&gt;Hope it helps&lt;BR /&gt;/Fredrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 13:23:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-Caption/m-p/183484#M48721</guid>
      <dc:creator />
      <dc:date>2010-03-17T13:23:10Z</dc:date>
    </item>
    <item>
      <title>Macro to export Caption</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-Caption/m-p/183485#M48722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is already checked but the title/caption isn't exported. Neither so when I export it by right clicking and export to Excel. I need to export via a macro as I will export 8 charts into Excel in specific places and don't want to right click 8 times and copy them all afterwards into one single Excel sheet. And I wan't to export the caption also to explain to the user what the chart contains.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 13:34:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-Caption/m-p/183485#M48722</guid>
      <dc:creator />
      <dc:date>2010-03-17T13:34:35Z</dc:date>
    </item>
    <item>
      <title>Macro to export Caption</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-Caption/m-p/183486#M48723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I was reading to fast.... I thought you were exporting the charts as images but I guess that's not the case.&lt;BR /&gt;I saw now in your macro that you use CopyTableToClipboard and that only copies the data in the table, as the name suggests.&lt;BR /&gt;Should you use CopyBitmapToClipboard instead it should work, but then of course you can't edit the data in Excel.&lt;BR /&gt;If you need to use CopyTableToClipboard then the following code should help. (you need to replace 'row' &amp;amp; 'column' with the values for the cell where you want the caption to appear:&lt;/P&gt;&lt;P&gt;set chart=ActiveDocument.GetSheetObject("CH_antalBreve")&lt;BR /&gt;set p = chart.GetProperties&lt;BR /&gt;ExcelDoc.Sheets(1).cells(row,column).Value = p.GraphLayout.WindowTitle.v&lt;/P&gt;&lt;P&gt;Hopefully we'll get it right this time &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;/Fredrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Mar 2010 15:41:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-Caption/m-p/183486#M48723</guid>
      <dc:creator />
      <dc:date>2010-03-17T15:41:22Z</dc:date>
    </item>
    <item>
      <title>Macro to export Caption</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-Caption/m-p/183487#M48724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have included these macro and works fine for charts caption but only if it is a text title.&lt;/P&gt;&lt;P&gt;Once I try to include a calculated title, I encouter an "unexpected error" from the macro.&lt;/P&gt;&lt;P&gt;NB / my expression is working very well as caption title:&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;='Investment (x 1.000 €) :' &amp;amp; date(&lt;B&gt;&lt;I&gt;v2date1&lt;/I&gt;&lt;/B&gt;) &amp;amp; ' to ' &amp;amp; date(&lt;B&gt;&lt;I&gt;v2date2&lt;/I&gt;&lt;/B&gt;) &amp;amp; ' VS ' &amp;amp; date(&lt;B&gt;&lt;I&gt;v1date1&lt;/I&gt;&lt;/B&gt;)&amp;amp; ' to ' &amp;amp; date(&lt;B&gt;&lt;I&gt;v1date2&lt;/I&gt;&lt;/B&gt;)&lt;/P&gt;&lt;P&gt;What's my problem.&lt;/P&gt;&lt;P&gt;Thanks for your help in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 11:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-Caption/m-p/183487#M48724</guid>
      <dc:creator />
      <dc:date>2011-04-19T11:55:56Z</dc:date>
    </item>
    <item>
      <title>Macro to export Caption</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-export-Caption/m-p/183488#M48725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This posted helped me out major!&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, 24 May 2011 08:11:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-export-Caption/m-p/183488#M48725</guid>
      <dc:creator />
      <dc:date>2011-05-24T08:11:21Z</dc:date>
    </item>
  </channel>
</rss>

