Showing modal Form from Modeless form

PetLahev

New Member
Joined
Jul 30, 2009
Messages
28
Hi

does anybody know why a modal form, that is shown from modeless form, will close the modeless form (parent)?

I use a modeless form to allow user continue working on a sheet but when they click on a button on the modeless form a new modal form is displayed, then when the modal form is closed and code returns into the modeless form, the modeless form will be closed (without QueryClose or Terminate events) when the code reaches end of the calling routine.

I treat with the modal form as a class, may it be problem?
Look at the example.

I don't have any idea why it doesn't working right now ...
Thanks a lot

Excel 2007 EN, Windows XP
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
You form works as expected for me (using XL2010 on XP SP3) ... the modeless form remains open when the modal form closes.

ξ
 
Upvote 0
hmmm when I was creating the example I had open my real project. Now, when I'm testing the example once again and my real project is closed it works as you wrote.
ok, so the bug is somewhere in my project, I will find it and kill it :)
Thanks for your time
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,855
Members
449,096
Latest member
Erald

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