Microsoft KB Archive/226708

= You cannot invoke the "Install On Demand" feature via VBA in Office 2000 =

Article ID: 226708

Article Last Modified on 1/24/2007

-

APPLIES TO


 * Microsoft Office 2000 Developer Edition
 * Microsoft Office 2000 Premium Edition
 * Microsoft Office 2000 Professional Edition
 * Microsoft Office 2000 Small Business Edition
 * Microsoft Office 2000 Standard Edition

-



This article was previously published under Q226708



SUMMARY
If you attempt to invoke the Microsoft Office 2000 Install On Demand (IOD) feature with Visual Basic for Applications (VBA) code, you will receive the following error message:

Shapes (unknown member) : The server application, source file, or item can't be found, or returned an unknown error. You may need to reinstall the server application.

This problem is generated when you try to run code that is similar to the following PowerPoint 2000 code sample: Sub test Application.FeatureInstall = msoFeatureInstallOnDemand With ActivePresentation.Slides(1).Shapes .AddOLEObject ClassName:="MSOrgChart" End With End Sub



MORE INFORMATION
The .AddOLEObject method refers to the uninstalled component by their ProgID, using the ClassName parameter for PowerPoint, or the ClassType parameter for Word and Excel. Install On Demand requires the use of the ClassID before it can be invoked to install advertised and Install on First Use Office 2000 components.

At this time there is no method available within the Excel, PowerPoint, or Word Object Models that allows you to start Install On Demand with VBA.

Additional query words: PPT2K PPT2000 PPT POWERPNT 2000 PPT9 9.0 OFF2000

Keywords: kbbug kbdtacode kberrmsg kbpending kbsetup KB226708

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.