VBA & Macro Problems

Fix Excel Workbook_Open and Iteration Settings in VBA

Chanuka GeekiyanageChanuka Geekiyanage Nov 18, 2026 868 views

Question details

Restore the Personal Macro Workbook's startup event and iterative calculation settings in Excel.

Fix Excel Workbook_Open and Iteration Settings in VBA
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the workbook module

Press Alt+F11, open View > Project Explorer, and expand VBAProject (PERSONAL.XLSB). Under Microsoft Excel Objects, double-click ThisWorkbook.

2
Add the event code

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.

3
Check the event setting

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.

4
Check macro permission

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.

5
Save and restart Excel

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.

Place the startup event in PERSONAL.XLSB and enable events
Application-wide settings: Iteration settings apply at the Excel application level. Check them after opening your usual workbooks, since other workbooks or code may affect calculation settings.
Free Microsoft Office alternative

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.

Open and edit Excel spreadsheet files, including XLSX and XLS formatsUse familiar spreadsheet tools for formulas and calculationsMove everyday documents between Microsoft Office and WPS OfficeUse a free, lightweight office suite
microsoft office alternative - wps office

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.