Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 17th, 2006, 10:15 AM
Registered User
 
Join Date: Nov 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default PublishObject Publish method is failing

Hello,

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:

ActiveWorkbook.PublishObjects.Publish(True)

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", _
        Title:="test"

ActiveWorkbook.PublishObjects.Publish (True)
End Sub

Any help will be greatly appreciated.







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





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