ATPVBAEN.XLAM is the Analysis ToolPak add-in. If Excel hangs while loading it, treat it as an add‑in/startup issue and isolate it.
Try these steps in order:
- Start Excel in Safe Mode
- Hold Ctrl and start Excel, or run
excel /safe from Run.
- If Excel opens and does not hang on ATPVBAEN.XLAM, the issue is likely an add‑in or startup file.
- Disable the Analysis ToolPak and other add-ins
- In Excel (normal or safe mode if possible):
- Go to File > Options > Add-ins.
- At the bottom, set Manage to Excel Add-ins and click Go.
- Clear Analysis ToolPak (and any other nonessential add-ins), then click OK.
- Also set Manage to COM Add-ins and click Go, then clear nonessential COM add-ins.
- Close and reopen Excel normally and test opening the workbook.
- Manually troubleshoot add-ins via the registry (advanced)
If Excel still hangs, follow the safe mode troubleshooting pattern:
- Open Registry Editor.
- Go to:
HKEY_CURRENT_USER\Software\Microsoft\Office\<1x.0>\Excel\Options (for Excel 2016 or newer, <1x.0> is 16.0).
- In the Name column, look for any REG_SZ values whose name is OPEN (or OPEN1, OPEN2, etc.). These can auto-load add-ins like ATPVBAEN.XLAM.
- Right-click OPEN and select Rename.
- Rename it to RenamedOPEN and press Enter.
- Repeat for any other values starting with OPEN (for example, rename OPEN1 to RenamedOPEN1).
- Start Excel in normal mode and test. If it now works, re-enable entries one by one by removing
Renamed from the name, restarting Excel each time, until the problematic one (likely the ATPVBAEN.XLAM loader) is identified.
- Check Excel startup folders
- Excel automatically opens workbooks/add-ins from XLStart and any alternate startup folder.
- Move any files (including ATPVBAEN.XLAM copies) out of these folders temporarily.
- Start Excel and open the workbook again.
- Repair Microsoft 365
- If Excel still hangs, run a repair of Microsoft 365, which can fix damaged add-in components:
- Follow the steps in Repair a Microsoft 365 application to perform an Online Repair.
- After repair, start Excel and test opening the file.
- Check antivirus interaction
- If antivirus integrates with Excel, it can interfere with add-ins.
- Temporarily disable Excel integration or antivirus add-ins in Excel, following the vendor’s guidance. Be aware this can increase security risk; revert settings after testing.
- Environmental checks
- Save the workbook locally (not on a network/SharePoint) and test.
- Ensure Windows and Office updates are installed using Update Microsoft 365 and your computer.
- If the workbook was generated by a third-party tool, test the same features in a new, blank workbook to rule out file corruption.
If Excel continues to hang on ATPVBAEN.XLAM after these steps, contact Microsoft Support for guided troubleshooting.
References: