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

Paragraph Numbers in Headers or Footers

If your documents routinely use numbered paragraphs, you may want to place the number of the page's first paragraph in ...

Discover More

Calculating Weekend Dates

Do you look forward to the weekend? Well, you can use Excel to let you know when the next weekend begins. Here's how you ...

Discover More

Accurate Font Sizes

Need to use some bizarre font size in your worksheet? Not a problem, provided it is a full or half point size.

Discover More

Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2013 For Dummies today!

More ExcelTips (ribbon)

Triggering an Event when a Worksheet is Deactivated

One way you can use macros in a workbook is to have them automatically triggered when certain events take place. Here's ...

Discover More

Deleting a File in a Macro

Macros give you a great deal of control over creating, finding, renaming, and deleting files. This tip focuses on this ...

Discover More

Making Modal Dialog Boxes Appear in Front of Workbooks

Perhaps the most common way of communicating with programs is through the use of dialog boxes. We expect dialog boxes to ...

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 6 - 0?

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.