Publish method failing, can't understand why

M

Mark

(Excel 2002)
Have a button on a sheet2, which fires following code:

ActiveWorkbook.PublishObjects.Add( _
SourceType:=xlSourceChart, _
Filename:="C:\tempHold\test.htm", _
Sheet:="Chart1", _
Source:="", _
HtmlType:=xlHtmlStatic).Publish

Getting error 1004: method publish of publishobjects failed

I can't figure out why. What could I be missing???
 

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

Top