VBA & Macro Problems

How to Fix Excel VBA UserForm Image Controls Disappearing

Rana GarciaRana Garcia Nov 3, 2026 869 views

Question details

Users need to resolve an issue where image controls unexpectedly disappear from an Excel VBA UserForm, often accompanied by run-time errors.

How to Fix Excel VBA UserForm Image Controls Disappearing
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 you start

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.

Solution 1Recommended

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.

1
Check the LoadPicture path

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.

2
Validate control names

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.

3
Confirm image accessibility

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.

Verify Image Paths and Validate Control References
Debugging Tip: Use the Debug.Print statement to output your file paths to the Immediate Window right before the LoadPicture function executes. This helps verify the exact string being processed.
Free Microsoft Office alternative

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. 1. Download the software: Visit the official WPS Office website to download the free installation package for your operating system.
  2. 2. Install WPS Office: Run the downloaded installer and follow the simple on-screen instructions to complete the setup.
  3. 3. Open your macro workbook: Launch WPS Spreadsheet, open your existing .xlsm file, and seamlessly run your VBA macros and UserForms.
Outstanding compatibility with Microsoft Excel macro-enabled workbooks (.xlsm) and VBA syntax.Highly stable UserForm rendering to prevent disappearing controls and interface glitches.Completely free and lightweight, ensuring faster load times for complex spreadsheet data.Familiar user interface requiring zero learning curve for Excel users.
microsoft office alternative - wps office

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.