chartobject

  • Thread starter Thread starter alldreams
  • Start date Start date
A

alldreams

MVPs,

Do you know of a way to convert a chartobject in the
activeworksheet to HTML so it can be emailed?

Thanks for the help!
 
You can use the export method of the chart object (a child of the
chartobject object) to produce a Gif or Jpg and mail that.
 
could you explain to me how to do it?
-----Original Message-----
You can use the export method of the chart object (a child of the
chartobject object) to produce a Gif or Jpg and mail that.

--
Regards,
Tom Ogilvy





.
 
It is a single command:Worksheets("Sheet1").ChartObjects(1) _
..Chart.Export _ FileName:="current_sales.gif", FilterName:="GIF"--
 
This is my macro:

Sub test()

Worksheets("CHARTS").ChartObjects(580) _
..Chart.Export _
Filename:="current_sales.gif", FilterName:="GIF"

End Sub


I get the following error:

Unable to get the ChartObject property of the Worksheet
class
 
Sub tester10()

Worksheets("CHARTS").ChartObjects(1) _
..Chart.Export _
Filename:="f:\current_sales.gif", FilterName:="GIF"

End Sub

worked for me. If you have 580 charts on a single sheet, god bless you!
 

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