Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export Chart from Excel to GIF

Status
Not open for further replies.

GabKPK

Programmer
Jan 29, 2002
6
SG
Hi,
I need to create a web page which will show some updated excel charts. The excel files are assumed to be stored at the web server. What should I do? I have no experience in doing this. Is that possible to have some scripts in the HTML to run macros in the excel files? Then inside the macro of the excel files, it will export the chart object to a GIF picture and replace the old picture file. Please help. Thanks.
 
This may be part of the answer that you are looking for.
The following code can be placed in the Workbook_Open()
subroutine to automatically export a chart to a .gif
file, every time the workbook is opened.

ActiveSheet.ChartObjects("Chart 1").Select
ActiveChart.Export Filename:="c:\whatever.gif", _
filtername:="GIF"

I hope this helps.

- vbMax :)
 
Thanks a lot for the codes, vbMax. So, anyone knows how to write script( say ASP) to run a macro in an excel?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top