Written by Allen Wyatt (last updated February 16, 2023)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and 2021
When you open a workbook, Excel normally runs any automatic macros that are saved with the workbook. Paul notes that in previous versions of Excel he could hold down the Shift key as the workbook was opened and Excel would not run the automatic macros. In Excel 2007 this doesn't seem to work for Paul, so he wonders if Microsoft has changed this convention.
The short answer is no, Microsoft has not changed this convention. When you open a workbook and hold down the Shift key as it is opening, Excel should ignore any automatic macros set up for the workbook. If that behavior is not what you are experiencing on your system, it could be that you aren't actually holding down the Shift key at the start of the loading process or you aren't holding it down long enough. Make sure you hold the Shift key as you click on the Open button (in the Open dialog box) or as you click the file in the MRU.
For a great, in-depth exposition of how all this works, visit this page on the site maintained by Excel MVP Jan Karel Pieterse:
https://www.jkp-ads.com/Articles/preventopenevent.asp
Note:
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (8769) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and 2021.
Dive Deep into Macros! Make Excel do things you thought were impossible, discover techniques you won't find anywhere else, and create powerful automated reports. Bill Jelen and Tracy Syrstad help you instantly visualize information to make it actionable. You’ll find step-by-step instructions, real-world case studies, and 50 workbooks packed with examples and solutions. Check out Microsoft Excel 2019 VBA and Macros today!
If you have a range of cells in which you want to count all the commas, there are several ways you can derive the figure ...
Discover MoreWith a little bit of work, Excel allows you to format individual characters of the text you place in a cell. If you want ...
Discover MoreExcel allows you to hide worksheets so that they aren't visible to those using your workbook. Hiding worksheets has a ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2023-02-16 08:10:40
John M
Per the linked article by Jan Karel Pieterse, he claims that Excel 365 has changed the Shift behavior and it no longer works for 365. Be sure to check the article for a few workarounds.
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.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2025 Sharon Parq Associates, Inc.
Comments