Easily Deploying Customizations

Written by Allen Wyatt (last updated May 5, 2018)
This tip applies to Excel 97, 2000, 2002, and 2003


When it comes to customizing Excel, your imagination is pretty much the limit. If you can imagine it, you can probably find a way to customize Excel to reflect your desires. You may even want to share your customizations with others.

In Excel, your custom macros are stored either in regular workbooks or in the personal.xls workbook, and changes to toolbars and menus are stored in a file with the .XLB extension. (In Excel, there should only be one .XLB file accessed at a time, and it is for this very purpose—managing toolbar and menu customizations.) The location of these files can vary from system to system, but you can use the Windows Search feature to locate them.

If you want, you can copy both the workbook with the macros and the .XLB file from your system to someone else's system. You just need to make sure that the other system is using the same version of Excel that you are and you need to make sure that you place the .XLB file in the same location as the existing .XLB file on the other system. The only problem with this, of course, is that when you replace the files on their system, you also get rid of any macros and/or customizations they may have previously made on their system.

To get around this problem, the best way to share macros is to add them into a file and save it as an add-in file (*.xla). The add-in should contain additional code to create the toolbar customizations and any menu items when the add-in is installed (workbook_AddInInstall event) and then remove them when the add-in is removed (workbook_AddInUnInstall event). In other words,. you are not saving the exact toolbar and menu customizations on your system, but you are using macros to recreate the customizations on the other person's system.

Creating the customizations is not too difficult, but it is still not a trivial task—and definitely beyond the scope of this tip. Menu customizations, explained properly, normally occupy an entire chapter in a good reference book.

So where should you look to find additional information? Chip Pearson has some good info on creating menus with VBA at this page:

http://www.cpearson.com/excel/menus.htm

A good reference is John Walkenbach's Excel 2003 Power Programming With VBA, as well as the older versions of the same book (for older versions of Excel). You can find information about those books by doing a search at your favorite online bookseller (such as Amazon).

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 (2083) applies to Microsoft Excel 97, 2000, 2002, and 2003.

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

Automatic Lines for Dividing Lists

When preparing a report for others to use, it is not unusual to add a horizontal line between major sections of the ...

Discover More

Marking Gender-Specific Grammar

Some people feel that your writing can be better if you remove gender-specific language it may contain. Here's how you ...

Discover More

QuickWords in Word

WordPerfect users coming to Word may miss a feature called QuickWords. This tip examines some ways you can get around the ...

Discover More

Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling today!

More ExcelTips (menu)

Turning on Placeholders

A large number of graphics in a worksheet can slow down Excel. One way to compensate is to turn on picture placeholders, ...

Discover More

Default Worksheet when Opening

When opening a workbook, you may want to make sure that a particular worksheet is always displayed first. The only way to ...

Discover More

Adding a Little Animation to Your Life

Tired of the same old boring Excel look? You can add some life to your worksheets by introducing some animation. Here's ...

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 2 + 2?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon 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.