Set ShowModal to False in userform initialize event

YasserKhalil
PlatinumLounger
Posts: 4913
Joined: 31 Aug 2016, 09:02

Set ShowModal to False in userform initialize event

Post by YasserKhalil »

Hello everyone
I know that the userform can be showed using such a line

Code: Select all

IUserForm1.Show vbModeless
This will solve the problem. But I would like to know if it is possible to set the showmodal to False in the userform_initialize event or not?

User avatar
Guessed
2StarLounger
Posts: 102
Joined: 04 Feb 2010, 22:44
Location: Melbourne Australia

Re: Set ShowModal to False in userform initialize event

Post by Guessed »

Yes, you can hide it and re-show it to apply a modal/modeless switch.

See https://www.mrexcel.com/board/threads/h ... me.408356/
Andrew Lockton
Melbourne Australia

YasserKhalil
PlatinumLounger
Posts: 4913
Joined: 31 Aug 2016, 09:02

Re: Set ShowModal to False in userform initialize event

Post by YasserKhalil »

Thanks a lot.