You cannot invoke the "Install On Demand" feature via VBA in Office 2000 (226708)



The information in this article applies to:

  • Microsoft Office 2000 Developer
  • Microsoft Office 2000 Premium
  • Microsoft Office 2000 Professional
  • Microsoft Office 2000 Small Business
  • Microsoft Office 2000 Standard

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.

Modification Type:MinorLast Reviewed:10/11/2006
Keywords:kbbug kbdtacode kberrmsg kbpending kbsetup KB226708