Cannot Publish Chart Object from a Visual Basic Macro (147302)
The information in this article applies to:
- Microsoft Excel for the Macintosh 5.0a
This article was previously published under Q147302 SUMMARY
In Microsoft Excel for the Macintosh, version 5.0, you cannot publish a
chart object out of Microsoft Excel to the system using a Microsoft Visual
Basic for Applications macro. Although a chart can be manually selected and
published, running the Visual Basic for Applications code will result in
one of the following error messages:
Run-time error '1001':
ChartObject does not have CreatePublisher Method
Run-time error '424':
Object Required
WORKAROUNDMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
To work around this behavior, call the Microsoft XLM code equivalent:
Application.ExecuteExcel4Macro _
(CREATE.PUBLISHER(""Hard Drive:Desktop Folder:Test Edition #1"",2,1)
STATUS
Microsoft has confirmed this to be a problem in Microsoft Excel for the
Macintosh, version 5.0. This problem was corrected in Microsoft Excel 98
Macintosh Edition.
REFERENCES
"Visual Basic User's Guide", version 5.0.
Microsoft Excel online Help, version 5.0.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbbug kbcode kberrmsg kbmacro kbpending kbProgramming KB147302 |
---|
|