how to save pictures in excel as gif or jpg

S

Sven Aeyels

Hi,

I can save charts to gif. Is it possible to save picture to gif or jpg? I
use the following code to save charts:

Dim mychart As Chart
Set mychart = ActiveSheet.ChartObjects(1).Chart
mychart.Export Filename:=ThisWorkbook.Path & "\chrt1.gif",
FilterName:="GIF"
Set mychart = ActiveSheet.ChartObjects(2).Chart
mychart.Export Filename:=ThisWorkbook.Path & "\chrt2.gif",
FilterName:="GIF"

What do I have to change, so I can save pictures
Thanks in advance.

Kind regards,
Sven.
 

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