Create an addin in Excel 97, 2000, 2002 using VBA in Microsoft Excel

  1. Start the Visual Basic Editor by pressing Alt+F11.
  2. Select Debug, Compile VBA projectname. In previous versions of Excel the VBA-code was automatically
    compiled when you saved the addin. This is no longer true, you have to do it yourself before you save the addin.
  3. If you want to lock the project from viewing you can select Tools, Properties for VBA projectname.
    In this dialog you activate Protection and check the option Lock project for viewing.
    Fill in a password and click the OK-button.
  4. Activate Excel by pressing Alt+F11.
  5. Select File, Properties..., Summary and fill inn information for the fields Title and Comments.
    The title will be the name that appears in the Add-Ins dialog (the dialog displaying available add-ins),
    the comment will be the description that appears when you select the addin in the Add-Ins dialog.
    Click the OK-button to close the Properties dialog.
  6. Select File, Save as….
  7. Change the option Filetype: to Microsoft Excel addin (*.xla) (the last choice in the dropdown).
    The add-in must contain at least one worksheet if this option is to be displayed.
  8. Click the Save-button to save the workbook as an addin.

The locking of the project will not take effect until you close and re-open the workbook.

You can convert a workbook to an addin by changing the property IsAddin to True for the ThisWorkbook-object.
This must be done from the Visual Basic Editor. When the property is changed you can save the workbook by
clicking on the Save-toolbarbutt

Comments

  1. "nice tip....
    i have made a macro in a workbook..
    and saved it as *.xla
    it can be installed through tools > add-ins
    BUT I need to have a button and assign that add-in to it
    i want a button to automatically goto menubar whenever that addin is installed.
    Can anyone help please !
    Good tip"

  2. "nice tip....
    i have made a macro in a workbook..
    and saved it as *.xla
    it can be installed through tools > add-ins
    BUT I need to have a button and assign that add-in to it
    i want a button to automatically goto menubar whenever that addin is installed.
    Can anyone help please ! "

Leave a Reply

Your email address will not be published. Required fields are marked *

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.