Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > BOOK: VBScript Programmer's Reference, 1st, 2nd, and 3rd editions
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: VBScript Programmer's Reference, 1st, 2nd, and 3rd editions
This is the forum to discuss the Wrox book VBScript Programmer's Reference, 3rd Edition by Adrian Kingsley-Hughes, Kathie Kingsley-Hughes, Daniel Read; ISBN: 9780470168080
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: VBScript Programmer's Reference, 1st, 2nd, and 3rd editions section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 17th, 2006, 10:15 AM
Registered User
Join Date: Nov 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default PublishObject Publish method is failing


I am new to Excel VBA and I'm sure that this post will be addressed fairly quickly. Thanks in advance for your help.

I am trying to publish an Excel chart from an open workbook to a file, but an error is generated on this line:


The compiler complains about the "Publish" method. The error message is: "Wrong number of arguments or invalid property assignment."

Here is the code:

Sub SaveChartWeb()
    ActiveWorkbook.PublishObjects.Add _
        SourceType:=xlSourceChart, _
        Filename:="D:\My Documents\QADevelopment\charts\test.htm", _
        Sheet:="Test Status", _
        Source:="Chart 1", _
        HtmlType:=xlHtmlChart, _
        DivID:="test", _

ActiveWorkbook.PublishObjects.Publish (True)
End Sub

Any help will be greatly appreciated.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
publish aspx file saurabh ASP.NET 3.5 Professionals 1 July 29th, 2008 07:49 AM
Publish Windows App (Click Once) snufse General .NET 0 March 13th, 2008 09:17 AM
publish web application rocksbhavesh ASP.NET 1.0 and 1.1 Professional 3 May 3rd, 2007 09:27 AM
Build & Publish Soporose Visual Basic 2005 Basics 1 December 28th, 2006 09:56 AM
when will 2nd edition publish? englishclub_vn BOOK: ASP.NET Website Programming Problem-Design-Solution 3 January 27th, 2005 08:38 AM

All times are GMT -4. The time now is 01:09 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.