How to Fix Excel VBA UserForm Image Controls Disappearing
Question details
Users need to resolve an issue where image controls unexpectedly disappear from an Excel VBA UserForm, often accompanied by run-time errors.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Loading chart images into image controls within an Excel VBA UserForm.
- Observed behavior
- Image controls vanish while charts are loading, triggering VBA run-time error 80020003 or 80070057.
Before modifying your code, ensure you have backed up your macro-enabled workbook (.xlsm) and verify that all chart image files referenced by your script are physically present in their designated folders.
Verify Image Paths and Validate Control References
This solution ensures that your VBA code is pointing to the correct file locations and that the UserForm controls are properly named, preventing invalid parameter errors.
Run-time errors 80020003 (Invalid procedure call or argument) and 80070057 (The parameter is incorrect) frequently occur when the LoadPicture function is handed an invalid path or targets a control that does not exist.
Open the VBA Editor (Alt + F11), locate the script loading your charts, and confirm that the file path passed to the LoadPicture function is complete and correct.
Select the UserForm in the VBA Editor and cross-reference the names of your Image Controls in the Properties window with the names used in your VBA script.
Navigate to the folder containing your chart images to ensure the JPEG or PNG files are accessible, not corrupted, and not locked by another background process.

Optimize the UserForm and Recreate Corrupted Controls
If image paths are correct but controls still disappear, the UserForm itself may be corrupted or overloaded. Rebuilding the controls can clear the underlying glitch.
Experience Stable Macro Support with WPS Office
If you are tired of dealing with VBA run-time errors and UserForm rendering glitches in Microsoft Excel, consider switching to WPS Office. It provides a highly stable, lightweight environment for running your complex macros and spreadsheets smoothly.
- 1. Download the software: Visit the official WPS Office website to download the free installation package for your operating system.
- 2. Install WPS Office: Run the downloaded installer and follow the simple on-screen instructions to complete the setup.
- 3. Open your macro workbook: Launch WPS Spreadsheet, open your existing .xlsm file, and seamlessly run your VBA macros and UserForms.

Frequently Asked Questions
What causes VBA Error 80020003 in UserForms?
This error, commonly known as 'Invalid procedure call or argument,' generally happens when the LoadPicture function is given a blank or incorrect file path, or when the script attempts to interact with an image control that does not exist or was deleted.
Why do my Excel VBA image controls disappear at runtime?
Image controls can disappear due to rendering bugs in Microsoft Excel, memory limitations when loading large or numerous chart images concurrently, or subtle corruption within the UserForm file itself.
How can I fix VBA Error 80070057 'The parameter is incorrect'?
To resolve this error, ensure the parameters passed to your chart or image objects are valid. Verify that the image dimensions do not exceed the control's limits and that the file is not currently locked or being written to by another process.
Can I recover a corrupted Excel VBA UserForm?
Yes. A common way to fix corruption is to right-click the UserForm in the VBA Project Explorer, select 'Export File' to save it as a .frm file, delete the form from the project, and then select 'Import File' to bring the clean version back in.




