Microsoft Knowledge Base

XL5: Installed Property Example in Help Is Incorrect

Last reviewed: September 12, 1996
Article ID: Q124306
The information in this article applies to:
  • Microsoft Excel for Windows, versions 5.0, 5.0c
  • Microsoft Excel for Macintosh, version 5.0
  • Microsoft Excel for Windows NT, version 5.0

In Microsoft Excel Help, the topic for the Installed Property states the following:

     AddIns("Analysis Tools").Installed = True

This code is supposed to install the Analysis ToolPak. However, because "Analysis Tools" is not the correct name for the Analysis ToolPak add-in, running the example will return the following error message:

   Run-time error '1004': Addins method of Application class failed

For this example to work correctly it should read as follows:

     AddIns("Analysis ToolPak").Installed = True

REFERENCES

"Visual Basic User's Guide," version 5.0, page 278 Microsoft Press "Microsoft Excel 5 Visual Basic for Applications Reference," page 339


KBCategory: kbtool kbdocerr
KBSubcategory:

Additional reference words: 5.00 5.00c addins tookpack tool pack pak



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 12, 1996
©1997 Microsoft Corporation. All rights reserved. Legal Notices.