Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Watermelon girl
 
Posts: n/a
Default Publishing charts - specify image name

We are using Excel to manipulate some real time data then publish the updated
results every 15 minutes to the Internet. I am publishing charts using
Excel's Save as Web Page feature, but then only want to use the images of the
charts as an included image in the actual web pages.
The images end up with names like "xyz_89654_image001.gif". The
"image001.gif" part I don't have a problem with - as long as there is only
one image in each subdirectory, that will be it, and the xyz comes from the
workbook name. It's the number in the middle that I have real problems with.
At the moment I only have a couple of lots of beta data to deal with (with 6
charts each) so I have hard coded the image name into the web pages and that
works fine. But I could end up with 100s of these and think specifying a
generic name for the image would be easier to automate.
Can this be done? I'm new at doing web pages so I may be approaching this
all the wrong way.

  #2   Report Post  
Andy Pope
 
Posts: n/a
Default

Hi,

Maybe you could make use of the charts .Export method via VBA.

From Excel help:

Worksheets("Sheet1").ChartObjects(1) _
.Chart.Export _
FileName:="current_sales.gif", FilterName:="GIF"

Cheers
Andy

Watermelon girl wrote:
We are using Excel to manipulate some real time data then publish the updated
results every 15 minutes to the Internet. I am publishing charts using
Excel's Save as Web Page feature, but then only want to use the images of the
charts as an included image in the actual web pages.
The images end up with names like "xyz_89654_image001.gif". The
"image001.gif" part I don't have a problem with - as long as there is only
one image in each subdirectory, that will be it, and the xyz comes from the
workbook name. It's the number in the middle that I have real problems with.
At the moment I only have a couple of lots of beta data to deal with (with 6
charts each) so I have hard coded the image name into the web pages and that
works fine. But I could end up with 100s of these and think specifying a
generic name for the image would be easier to automate.
Can this be done? I'm new at doing web pages so I may be approaching this
all the wrong way.


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
  #3   Report Post  
Watermelon girl
 
Posts: n/a
Default

Thanks, Andy. You set me looking elsewhere and found what I needed was to
specify the DivID in the PublishObject method rather than letting Excel
default it to whatever.

"Andy Pope" wrote:

Hi,

Maybe you could make use of the charts .Export method via VBA.

From Excel help:

Worksheets("Sheet1").ChartObjects(1) _
.Chart.Export _
FileName:="current_sales.gif", FilterName:="GIF"

Cheers
Andy

Watermelon girl wrote:
We are using Excel to manipulate some real time data then publish the updated
results every 15 minutes to the Internet. I am publishing charts using
Excel's Save as Web Page feature, but then only want to use the images of the
charts as an included image in the actual web pages.
The images end up with names like "xyz_89654_image001.gif". The
"image001.gif" part I don't have a problem with - as long as there is only
one image in each subdirectory, that will be it, and the xyz comes from the
workbook name. It's the number in the middle that I have real problems with.
At the moment I only have a couple of lots of beta data to deal with (with 6
charts each) so I have hard coded the image name into the web pages and that
works fine. But I could end up with 100s of these and think specifying a
generic name for the image would be easier to automate.
Can this be done? I'm new at doing web pages so I may be approaching this
all the wrong way.


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pasting worksheet with embedded charts FishMan Charts and Charting in Excel 2 October 5th 05 02:26 PM
Charts won't update pwermuth Charts and Charting in Excel 8 July 15th 05 07:32 PM
Excel Charts Linked to Spreadsheets Rich Charts and Charting in Excel 1 July 4th 05 04:36 PM
Pie Charts Resize Automatically - How To Avoid? John Mansfield Charts and Charting in Excel 0 May 11th 05 08:12 PM
Charts to Image or Picture? Bill Elerding Charts and Charting in Excel 2 May 5th 05 12:54 PM


All times are GMT +1. The time now is 03:31 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"