VBA: Export Graph to .GIF - code to then open .GIF

  • Thread starter Thread starter Dee Cowman
  • Start date Start date
D

Dee Cowman

I've written the code to export an Excel chart to .GIF file. But I
then want that .GIF file to open. What would the code for that be?

Currently I can open my .GIF file with Microsoft Photo Editor. Another
option would be to have the .GIF file automatically be inserted into
PowerPoint - then have the PowerPoint automatically open.

Any ideas on this?

Thank you.

** Posted via: http://www.ozgrid.com
Excel Templates, Training, Add-ins &
Software!http://www.ozgrid.com/Services/excel-software-categories.htm **
 
Hi
have a look at the Shell method in the VBA help. Use this to start your
imaging program and use the filename as first parameter (should work
for most applications)
 
Hi
try
dim res
res=Shell("your image program path and location" & " " &
"C:\PWAFChart.gif", 1)
 

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

Back
Top