Runtime error 400

kelly mort

Well-known Member
Joined
Apr 10, 2017
Messages
2,169
Office Version
  1. 2016
Platform
  1. Windows
I just woke up to face this problem .

I have been doing my best to fix it since but I am not able to.

When I call my userform I get run time error 400

Form already displayed; can't show modally.




I have tried restarting several times but the form seems to load twice each time.

Now I am getting stacked. Can someone point out my error ?

Regards
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Can someone point out my error ?
Probably not without seeing all of your VBA code.
Be sure to check ALL VBA modules. Perhaps you have some code running automatically in the ThisWorkbook or one of the Sheet modules.

Have you tried stepping through your VBA code to see what it is doing, and if it is trying to open the same form twice?
 
Last edited:
Upvote 0
Probably not without seeing all of your VBA code.
Be sure to check ALL VBA modules. Perhaps you have some code running automatically in the ThisWorkbook or one of the Sheet modules.

Have you tried stepping through your VBA code to see what it is doing, and if it is trying to open the same form twice?

I am still inspecting the codes but what I don't get clear is that even when I run it from the vb editor still it shows that error.


I will step through as you said and see.


Edit ::


When you say automatically do you mean those that call the form or any code at all?
 
Last edited:
Upvote 0
I am referring to Event Procedure code, which runs automatically upon some event happening (as opposed to being called deliberately, either by manually, from a button, from a keyboard shortcut, etc).
See: http://www.cpearson.com/excel/Events.aspx
 
Upvote 0
I am referring to Event Procedure code, which runs automatically upon some event happening (as opposed to being called deliberately, either by manually, from a button, from a keyboard shortcut, etc).
See: http://www.cpearson.com/excel/Events.aspx


This link was very useful.

I just found out there are series of conflicts in my scripts so I am fixing them and the issue too seems to be varnishing gradually.
 
Upvote 0
Excellent! Glad to hear it.
:)
 
Upvote 0

Forum statistics

Threads
1,214,587
Messages
6,120,405
Members
448,958
Latest member
Hat4Life

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