Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Publish an Excel 2003 Chart to HTML file

Please can someone help publish my Excel chart to an HTML file using a
macro. I found the code:

With ActiveWorkbook.PublishObjects.Add(SourceType:=xlSo urceChart,
_
Filename:="C:\Work.htm", Sheet:="Chart1", Source:="Chart 1",
_
HtmlType:=xlHtmlStatic, DivID:="Chart1_04")
.Publish (True)
End With

But it does not work, I receive the error "Compile error: Expected
Function or variable".

Can anyone help?

Thanks,

Brett

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
Excel 2007 - publish chart as htm web page file nflfan Charts and Charting in Excel 1 March 12th 10 03:05 PM
How can I open an Excel 2003 HTML file in Excel 2007 IT Olson Setting up and Configuration of Excel 0 January 15th 08 05:58 PM
Excel 2003 does not open html file correctly rdshadden Excel Discussion (Misc queries) 0 June 7th 06 06:06 AM
Missing Chart Text Boxes in XL2003 Html Publish CochranRB Excel Programming 0 April 11th 06 06:28 PM
publish one (and only one) html file? Mark Excel Programming 2 July 5th 05 05:57 PM


All times are GMT +1. The time now is 08:47 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"