Macros Not Available in Later Versions of Excel

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


1

David is having occasional problems opening workbooks in Excel 2016 and Excel 2019. For instance, he may open a macro-enabled workbook and discover all macros within the file have disappeared. If he saves, closes, and re-opens the workbook in these versions the macros still do not reappear. However, if he opens the same workbook in Excel 2010 the macros are available with all working as intended. If he saves the file in Excel 2010, closes it, and then reopens it in Excel 2016 or Excel 2019, the macros will have reappeared. David wonders why this is happening.

Based on the description that David provides, this simply should not happen. A key to what is going on may be in how David opens the workbook in various versions of Excel. Let's say that you have three computers, all connected to a network drive. Each computer is running a different version of Excel (2010, 2016, and 2019). The Excel 2010 system seems to open the workbooks just fine, with the macros present. The other two do not.

This sounds like it could be a problem related to security settings on the Excel 2016 and Excel 2019 systems. It could very well be that the settings on the systems using the later versions are set to disable macros without notification, while the settings on the Excel 2010 system are set more permissively, to allow the macros. You can check and change the settings in this manner:

  1. Display the Excel Options dialog box. (Display the File tab of the ribbon and then click Options.)
  2. At the left side of the dialog box click Trust Center.
  3. Click Trust Center Settings. Excel displays the Trust Center dialog box.
  4. At the left side of the dialog box click Macro Settings. (See Figure 1.)
  5. Figure 1. The Macro Settings in the Trust Center dialog box.

  6. Select the Disable VBA Macros with Notification radio button.
  7. For good measure, click Protected View at the left side of the dialog box. (See Figure 2.)
  8. Figure 2. The Protected View options in the Trust Center dialog box.

  9. Clear the Enable Protected View for Files Originating from the Internet check box.
  10. Click on OK.

Now you can try opening the workbook, and you should be able to access the macros just fine, though you will be asked if you want to enable them when you first open a macro-enabled workbook.

If the Excel versions are not on separate systems—if they are all installed on the same, single system—then it could be that they are somehow conflicting with each other. In that case, it would be helpful to find a different system on which just Excel 2016 is installed and see if the workbook, complete with working macros, will open on that system. If it does, then the solution that will give the most satisfactory results will be to uninstall Excel (all versions) from the problem system and reinstall just a single version of your choosing.

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 (8107) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021.

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

Editing a Discussion Server

How to change the address of a discussion server in Word.

Discover More

Printing Just the Visible Data

In a large worksheet, you may want to display and print just a portion of the available data. Displaying the desired ...

Discover More

Maintaining Delivery Address Information for Envelopes

Using the Envelopes and Labels dialog box to print envelopes is quick and easy. It can also be frustrating, however, ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More ExcelTips (ribbon)

Determining How Many Windows are Open

Does your macro need to know how many windows Excel has open? You can determine it by using the Count property of the ...

Discover More

Highlighting Pattern Violations

A common part of working with text strings in a worksheet is normalizing those strings so that they follow whatever rules ...

Discover More

Pulling First Letters from Parenthetical Text

When working with text in Excel, you can slice and dice it in many ways. This tip shows how to pull first letters from ...

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 one less than 9?

2022-03-19 11:32:10

J. Woolley

Re. the Trust Center, you might also consider the following:

1. If your trusted files are in a limited number of folders (including subfolders):
1.a. Pick File > Options > Trust Center > Trust Center Settings… > Trusted Locations.
1.b. If the trusted folder is not already listed, click Add new location…, then add it.
1.c. When you Add (or Modify) a location, you can include a description and specify whether subfolders are also trusted.

2. If your file is in a Trusted Location, it does not need a Certificate. But if you want to add a Certificate to an Excel file, click Alt+F11 to open the Visual Basic Editor (VBE), then pick Tools > Digital Signature....

3. When your file has a Certificate, you can confirm that as a Trusted Publisher:
3.a. Open the file, pick File > Options > Trust Center > Trust Center Settings… > Trusted Publishers.
3.b. Select the applicable Certificate, then click OK.


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.