OFF2000: Cannot Invoke Install On Demand via VBA

ID: Q226708


The information in this article applies to:
  • Microsoft Office 2000


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 : kbcode kbsetup kbdta kbdtacode KbVBA
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: July 8, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.