Userform Wait Before Showing Next Form

Jaye7

Well-known Member
Joined
Jul 7, 2010
Messages
1,069
Can anyone please help with the following.

I have 4 forms which all open when I run a script, for each form that opens in the userform activate code it then runs a script which removes the forms caption.

The problem I am having is that it is only removing the first form that executes caption, even though I have a remove caption call method in each userform activate event.

If I have 4 scripts, 1 script to open each form then it works fine however I can not combine the scripts to make one call event.

ie. I can run the following individually

Code:
Sub U1()
call userf1 ' which will call userform1
end sub

Sub U2()
call userf2 ' which will call userform2
end sub

Sub U1()
call userf3 ' which will call userform3
end sub

Sub U1()
call userf4 ' which will call userform4
end sub
however if I combine them into one script it does not work ie.

Code:
Sub U5()
call userf1
call userf2
call userf3
call userf4
end sub
Is there a method that will wait until the form is completely displayed before it then runs the next call method.

I have tried application.wait but it doesn't work.


.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hello Jaye7,

I suspect your problem is the UserForm.ShowModal property is set to True. This allows only one UserForm to have the focus.

Sincerely,
Leith Ross
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,777
Members
452,942
Latest member
VijayNewtoExcel

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