Article ID: 226708 - Last Review: January 24, 2007 - Revision: 3.2

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

This article was previously published under Q226708
Expand all | Collapse all

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.

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
Keywords: 
kbbug kbdtacode kberrmsg kbpending kbsetup KB226708
 

Article Translations