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

Rechecking Spelling and Grammar

If you ever need to check the spelling or grammar of a document from scratch, it can be confusing knowing the proper ...

Discover More

Quickly Removing a Toolbar Button

Want to get rid of a toolbar button? There's no need to drag open the menus and dialog boxes; just use the shortcut ...

Discover More

Averaging a Non-Contiguous Range

Figuring out how to average data that is in a contiguous range of cells is easy. When the data is spread over a group of ...

Discover More

Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!

More ExcelTips (ribbon)

Turning Off Speech Capabilities

Excel can talk to you, reading back whatever you enter into a cell. If you want to turn this capability off, you'll want ...

Discover More

Finding the Analysis ToolPak Add-In

The Analysis ToolPak is used to add some very handy capabilities to Excel. If you don't have it installed, and you can't ...

Discover More

Counting with Subtotals

There are a variety of ways you can count information in different groupings. One convenient way is to use the ...

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 four less 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.