XL: How to Create an Add-in

Last reviewed: February 2, 1998
Article ID: Q142120
The information in this article applies to:
  • Microsoft Excel for Windows 95, versions 7.0, 7.0a
  • Microsoft Excel for Windows, versions 5.0, 5.0c
  • Microsoft Excel for the Macintosh, versions 5.0, 5.0a

SUMMARY

In Microsoft Excel, you can compile a workbook in Visual Basic for Applications and save it as an add-in.

MORE INFORMATION

CAUTION: Because add-in programs cannot be edited, you should keep a copy of your original workbook so that you can later update or add procedures.

Before you save an add-in, click Summary Info on the File menu in Microsoft Excel 5.0 or click Properties on the File menu in Microsoft Excel 7.0. In the Title box, type a name the your add-in. This name will be used in the add-ins dialog box, which is displayed when you click Add-Ins on the Tools menu. If you do not assign a title for the add-in, a blank check box representing your custom add-in box will appear in the add-ins dialog box.

To create an add-in program:

  1. With a Visual Basic module, Microsoft Excel 4.0 macro sheet, or a dialog sheet active in the workbook that you want to convert, click Make Add-In on the Tools menu.

  2. In the Directories box in Microsoft Excel for Windows or the Folders box in Microsoft Excel for the Macintosh, click the directory or folder in which you want to save the file.

  3. In the File Name box, type the name you want for the compiled add-in file.

  4. click OK.

To install an add-in:

  1. On the Tools menu, click Add-ins.

  2. Select the check box next to the add-in you want to install.

  3. Click OK.

If the add-in you want to install is not listed in the Add-ins dialog box, choose the Browse button and locate the add-in.

In order to use a macros from the add-in you create, click References on the tools menu from a module sheet and assign a reference to your custom add-in. At this point, you can call the macros from your custom add-in just as you would from any other workbook.

REFERENCES

In Microsoft Excel version 7.0, for more information about creating Add- ins, click Answer Wizard on the Help menu and type:

   What is an add-in application, and where can I learn more about add-
   ins?

For information on how to create an add-in in Microsoft Excel 97 for Windows or Microsoft Excel 98 Macintosh Edition, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q156942
   TITLE     : XL97: How to Create an Add-in File in Microsoft Excel 97

"Visual Basic Users Guide for Microsoft Excel," version 5.0, Chapter 13, "Creating an Add-In Application."


Additional query words: 5.00 5.00a 5.00c 7.00 7.00a XL7 XL5
Keywords : xlvbahowto xlvbainfo kbprg
Version : WINDOWS:5.0,5.0c,7.00,7.00a; MACINTOSH:5.0,5.0a
Platform : MACINTOSH WINDOWS
Issue type : kbhowto kbinfo


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: February 2, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.