Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Understanding Add-Ins.

Understanding Add-Ins

Written by Allen Wyatt (last updated January 19, 2019)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365


2

Many features of Excel are available only through what are called add-ins. For instance, the Analysis ToolPak is a good example of an add-in. The tools available in add-ins such as the Analysis ToolPak are not part of the basic Excel system, but can be added to the system as needs dictate. These add-ins are nothing more than programs which have been "added to" Excel in such a way that they appear to be part of Excel itself.

You also know that macros are nothing more than programs that you write using a language understood by Excel. These programs instruct Excel to perform tasks that otherwise might be time consuming or repetitious on your part. These programs, if elaborate enough, can become full-fledged applications that operate under Excel.

Excel allows you to translate your macro programs into add-ins, which can become part of Excel—the same as the Analysis ToolPak and others. Eventually you might want to take advantage of this capability. The files you convert to add-ins do not need to be elaborate, nor do they have to be fancy. Converting them to add-ins does have several advantages, however:

  • The program code cannot be altered by others.
  • The program code runs a bit quicker.
  • The add-in is available without needing to open any particular workbook.
  • The functions provided by the add-in appear to be a part of Excel.

    In essence, add-ins are nothing but a special type of workbook which you have converted to an add-in format that is understood by Excel.

    You may want to make sure your macro code which is destined to be an add-in performs some initializing routine that modifies, in some way, the Excel user interface. For instance, an add-in may modify the ribbon structure used by Excel or it may add a selection to the Quick Access Toolbar so that the functions in the add-in can be accessed. Your macros should take care of the interface modification so that people can access your add-ins. If you don't modify the interface in some way, then users can only get to the macro code in your add-in by directly referencing in a worksheet formula the names of any functions in your add-in.

Note:

If you would like to know how to use the macros described on this page (or on any other page on the ExcelTips sites), I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (8527) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Understanding Add-Ins.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Understanding the If ... End If Structure

One of the most basic of programming structures is the conditional structure: If ... End If. This tip explains how this ...

Discover More

Resetting Ribbons

Word allows you to customize the program's ribbon tabs so they more closely match the way you want to work. At some ...

Discover More

Preserving the Undo List

The undo list can be a lifesaver when working in a macro. Unfortunately, the undo list is not preserved when you run a ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More ExcelTips (ribbon)

Using Revision Tracking

Want to keep track of the changes other people make to your workbook or even your own changes? Excel makes gathering this ...

Discover More

Understanding Auditing

Excel provides some great tools that can help you see the relationships between the formulas in your worksheets. These ...

Discover More

Tracing Precedent Cells

Cells that affect another cell are called precedent cells. If you need to know which cells affect a particular cell, ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is two more than 7?

2019-05-22 03:11:27

SteveJez

Dennis,
Unless the VBA project is secured the code is visible.
If the code is "highly proprietary" then you'd need to protect the VBA project with something like Secure ++ VBA or Unviewable+ VBA from Ribbon Commander (I have no links to them, just used their products), otherwise anyone with basic understanding of VBA would be able to view all of the code.


2019-05-21 12:08:00

Dennis Costello

"The program code cannot be altered by others." - can it be seen by others? Is the add-in a mechanism, in other words, that would allow one to publish an application without sharing its source code? Is the source code accessible for reverse engineering by looking at the guts of the file containing the add-in? Or is it just as obscure as would be the object files (or, better yet, executable) generated from a program written in C or Fortran or Pascal?

I once had someone who wanted to license his program while retaining his highly proprietary, trade secret source code. I thought of migrating it to VBA and then putting a password on the XLSM file, but that wasn't enough protection. Making it an add-in is an intriguing thought.


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.