Link to home
Start Free TrialLog in
Avatar of oreghe
oreghe

asked on

Export to gif or jpg using excel

I know there is a way to export charts as pictures in excel
I wish to have a couple of lines in VBA
that does that.

thanks

ASKER CERTIFIED SOLUTION
Avatar of Richie_Simonetti
Richie_Simonetti
Flag of Argentina image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of oreghe
oreghe

ASKER

I have been away.
No problem!, you are welcome anytime.
Thanks for the points/grade
Cheers
When I try this solution, I get a:

Run-time error '1004':
Application-defined or object-defined error

Any ideas on a solution?
well, that was a solution in Office97'Age i think.
Sure you are using at least a 2003, aren't you?

PD: anyway, just a guess, how many chart have you in worksheet?
by the way, your sheet is named "sheet1"?
try replacing sheet1 for just 1
I am using Excel 2003.  I have just one chart within a sheet. I tried renaming and am getting the same error.
i did try with excel 2007 and it continues working!!
maybe, and just maybe, the error not belongs to that line of code... just a guess (without furter info i can speculate only)