<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Mick F</title><description>Notes for myself and fellow programmers, with a focus on iOS, Swift and web frontend development. Since 2009.</description><link>https://www.mickf.net/tech/</link><item><title>Excel: exporting a chart as a PNG image</title><link>https://www.mickf.net/tech/excel-exportation-d-un-graphe-sous-forme-d-image/</link><guid isPermaLink="true">https://www.mickf.net/tech/excel-exportation-d-un-graphe-sous-forme-d-image/</guid><pubDate>Thu, 12 Feb 2009 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;This Excel macro will help you export a chart to a PNG file to &lt;code&gt;d:/temp&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Sub exportChartAsPNG()&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Dim ChartName As String&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Dim File As String&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;ChartName = ActiveChart.Name&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;File = &quot;d:/temp/&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;ActiveChart.Export Filename:=File &amp;amp; ChartName &amp;amp; &quot;.png&quot;, FilterName:=&quot;PNG&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;End Sub&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
</content:encoded><category>Excel</category><category>VBA</category><category>Windows</category></item></channel></rss>