How to save a Macro workbook as an Excel 2010 Add-in to distribute

    1. Load the workbook that is destined to become your add-in.
    2. Press Alt+F11. Excel displays the Visual Basic Editor.
    3. At the very top of the Project window, select the bold entry that declares the name of the VBA project that is open.
    4. Choose the Properties option from the Tools menu. Excel displays the Project Properties dialog box.
    5. Make sure the Protection tab is selected.
    6. Make sure the Lock Project For Viewing check box is selected.
    7. Enter a password in both fields at the bottom of the dialog box.
    8. Click on OK. The dialog box closes.
    9. Press Alt+Q. Excel close the Visual Basic Editor and returns to the Excel workbook.
    10. Display the File tab of the ribbon.
    11. Make sure the Info option is selected at the left side of the dialog box.
    12. Click the Properties link near the right side of the dialog box and then click Advanced Properties. Excel displays the Properties dialog box for your workbook.
    13. Make sure the Summary tab is displayed. (See Figure 2.)

Figure 2. The Summary tab of the workbook’s Properties dialog box.

  1. Make sure the Title field is filled in. What you enter here will appear in the Add-Ins dialog box used by Excel.
  2. Make sure the Comments field is filled in. What you enter here will appear in the description area of the Add-Ins dialog box used by Excel.
  3. Click on the OK button.
  4. Press F12. Excel displays the Save As dialog box.
  5. Using the Save As Type pull-down list, specify a file type of Excel Add-In (*.xlam).
  6. Specify a name for your add-in file in the File Name field.
  7. Click on Save. Your add-in file is created.
  8. Close the workbook you just saved as an add-in.