Is there a way of converting a lone excel graph into a JPEG

  • Thread starter Matthew Freedman
  • Start date
A

Andy Pope

Hi,

The chart has an export method you can use from VBA

ActiveChart.Export "C:\temp\mychart.jpg", "jpg"


Cheers
Andy
 
D

Don Guillett

Essentially the same thing. Change to suit

Sub ExportChartGIF()
ActiveChart.Export Filename:="C:\a\MyChart.gif", _
FilterName:="GIF"
End Sub
Sub ExportChartJPG()
ActiveChart.Export Filename:="C:\a\MyChart.jpg", _
FilterName:="jpeg"
End Sub
 
B

Bernard Liengme

Also, if you have a graphics program like PaintShopPro, you can copy chart
to it and use Save As

best wishes
 
J

Jon Peltier

Matthew -

Using Andy's or Don's suggestions, export the chart as a GIF, not a JPEG. GIFs are
better suited to drawing object like charts, while JPEGs are better suited to
photographic images. PNGs are also good for charts, if that filter is available on
your computer.

Using Bernard's suggestion, save the final image as GIF or PNG.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top