Fix Excel Workbook_Open and Iteration Settings in VBA
Question details
Restore the Personal Macro Workbook's startup event and iterative calculation settings in Excel.

- Product
- Microsoft Excel
- Device & OS
- Windows 11
- Scenario
- A user relies on a Personal Macro Workbook to run VBA code and configure iterative calculation when Excel starts.
- Observed behavior
- After a Windows 11 upgrade, Workbook_Open does not trigger and the iterative calculation settings are not applied.
Open Excel and check whether PERSONAL.XLSB is loaded by looking for it in the VBA editor's Project Explorer. Confirm that the startup code is from a trusted source before enabling macros.
Place the startup event in PERSONAL.XLSB and enable events
Use this approach when the Personal Macro Workbook loads but its startup code does not run.
Press Alt+F11, open View > Project Explorer, and expand VBAProject (PERSONAL.XLSB). Under Microsoft Excel Objects, double-click ThisWorkbook.
Move the Workbook_Open procedure from any standard module into ThisWorkbook. For example, use: Private Sub Workbook_Open() Application.Iteration = True Application.MaxIterations = 100 Application.MaxChange = 0.001 End Sub. Adjust the iteration limits to suit your calculation needs.
In the VBA editor, open View > Immediate Window, type Application.EnableEvents = True, and press Enter. This re-enables events for the current Excel session; it does not rerun an event that was already missed.
In Excel, review File > Options > Trust Center > Trust Center Settings > Macro Settings. If Excel displays a security warning for a trusted PERSONAL.XLSB, use its Enable Content button.
Save the VBA project, close all Excel windows, and accept the prompt to save changes to the Personal Macro Workbook. Reopen Excel, then check File > Options > Formulas for the iterative calculation settings.

Restore or recreate the Personal Macro Workbook
Use this approach if PERSONAL.XLSB is missing, does not load, or appears damaged.
Work with Excel spreadsheets in WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and Microsoft Office format compatibility, making it easy to move everyday spreadsheet work. It does not repair Excel's VBA startup events, and macro compatibility may vary.

Frequently Asked Questions
Where should Workbook_Open code go?
In the VBA editor, place it in the ThisWorkbook module of the workbook that opens. For a Personal Macro Workbook, use ThisWorkbook under VBAProject (PERSONAL.XLSB), not a standard module.
How can I tell whether events are disabled?
Press Alt+F11, open View > Immediate Window, type ?Application.EnableEvents, and press Enter. If the result is False, enter Application.EnableEvents = True, then reopen the workbook to test its startup event.
Where can I check iterative calculation settings in Excel?
Open File > Options > Formulas and look for Enable iterative calculation, Maximum Iterations, and Maximum Change. VBA can set these through Application.Iteration, Application.MaxIterations, and Application.MaxChange.
Why can't I see PERSONAL.XLSB in the Excel window?
The Personal Macro Workbook is normally hidden. Press Alt+F11 and check Project Explorer for VBAProject (PERSONAL.XLSB), or use View > Unhide in Excel to see whether it is listed.




