Run Time Error 424 - Object Not Found

Denny57

Board Regular
Joined
Nov 23, 2015
Messages
185
Office Version
  1. 365
Platform
  1. Windows
Suddenly my Command Buttons to open User Forms are not working in one file each time I try to open a User Form and I receive the Run Time Error 424.

When I run the debugger, I am taken to the Module which opens the form and the form name is highlighted.

Macros are enabled and forms in other files open.

Sample

VBA Code:
Sub CallUserForm()

    frmPreservedSteamLocomotives.Show

End Sub

There are 4 Command Buttons in 4 different worksheets in the same workbook, none of which now work.

Any suggestions?
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
check that the name is correct, including capitalization and that you didn't remove any form controls that are referred to in the initialize event, assuming you have one.
 
Upvote 0
Solution
In addition to what suggested by Micron, above:
Try excecuting Sub CallUserForm step-by-step using (from the vba editor) F8

Probably, after frmPreservedSteamLocomotives.Show, excecution will continue with some initialization macro; any error in that phase would abort the form opening, try to catch wich is the aborting instruction and probably that will suggest also the reason
 
Upvote 0
Micron

Thank you for your response. It would appear that MS Windows Common Controls was no longer present in the Tools - References and so had removed the DTPicker control from the forms. I can only assume that this must have happened during a MS365 upgrade.

I have now been able to reload these controls and put the DTPicker back into the forms
 
Upvote 0

Forum statistics

Threads
1,214,926
Messages
6,122,306
Members
449,079
Latest member
juggernaut24

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top