Fix PowerPoint VBA Crashing When Adding ActiveX List Box Items
Question details
PowerPoint crashes without triggering an error handler when a VBA macro uses the AddItem method on an ActiveX list box or combo box.

- Product
- PowerPoint
- Device & OS
- not provided
- Scenario
- Running a VBA macro to dynamically populate an ActiveX list box or combo box control on a PowerPoint slide.
- Observed behavior
- PowerPoint abruptly closes without triggering the VBA error handler when the code reaches the AddItem method via OLEFormat.Object.Object.
Before modifying your VBA code, ensure you save your presentation to prevent data loss in case of another crash, and confirm that the Developer tab is enabled in your ribbon.
Use a Dedicated Shape Variable and Correct OLEFormat Syntax
Resolves the crash by properly defining variables as Shape types, avoiding reserved VBA keywords, and calling AddItem directly through the shape's OLEFormat object.
PowerPoint can silently crash when VBA encounters ambiguous variable names or deeply nested object calls like OLEFormat.Object.Object. By explicitly declaring a Shape variable and mapping it to the ActiveX control, you provide a stable reference for the AddItem method.
Press Alt + F11 to open the Microsoft Visual Basic for Applications window, then locate your macro code.
Change your variable declarations to explicitly use the Shape type. For example: Dim commonBox As Shape.
Ensure none of your variables are named using reserved VBA keywords like 'Shape' or 'Object'. Use descriptive names like 'itemShape'.
Instead of using multiple '.Object' references, access the control correctly using commonBox.OLEFormat.Object.AddItem "Item1".

Verify Object Library References and Compilation
Ensures all required object libraries are loaded to prevent silent crashes during ActiveX execution.
Explore WPS Office as Your Reliable Presentation Alternative
If you frequently encounter VBA crashes or ActiveX compatibility issues in Microsoft Office, consider switching to WPS Office. It provides a lightweight, highly compatible environment for all your presentation needs without draining system resources.
- 1. Download and Install: Visit the official WPS website to download and install WPS Office.
- 2. Open Your Presentation: Launch WPS Presentation and click 'Open' to load your existing .pptx files seamlessly.
- 3. Edit Without Hassle: Enjoy a stable editing environment with built-in shapes, charts, and media tools that don't rely on complex ActiveX integrations.

Frequently Asked Questions
Why does PowerPoint crash without throwing a VBA error?
This usually happens when interacting with ActiveX controls (OLE objects) using incorrect object references or deeply nested calls. The invalid memory access causes a low-level thread conflict that bypasses the VBA error handler entirely, shutting down the application.
What is the Microsoft Forms 2.0 Object Library?
It is a dynamic link library (FM20.DLL) required for working with UserForms and ActiveX controls, such as list boxes, combo boxes, and command buttons, within Microsoft Office VBA.
Are ActiveX controls supported in all versions of Office?
No. ActiveX controls are only supported on Windows desktop versions of Microsoft Office. They are not supported in Office for Mac or the web-based Office applications, which is why modern presentations often prefer standard shapes or web add-ins instead.




