userform make Excel freezes and restarts

timecop79

New Member
Joined
Apr 8, 2023
Messages
16
Office Version
  1. 2016
Platform
  1. Windows
  2. Mobile
Can you please translate the following text into English:
"I am working on a small application in Excel that contains several userforms. When double-clicking on a listbox in the main userform, it opens a second userform that allows modification of the selected row. So far, everything is fine. However, after confirming to return to the initial userform, Excel freezes and sometimes restarts. If anyone can help me, please."

my file :
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hi there...

Although I do not understand the language I did try something...please see if it will work for you...

at

VBA Code:
Private Sub ListBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
try changing
VBA Code:
Modifrm.Show
to
VBA Code:
Modifrm.Show vbModeless
 
Upvote 0
Hi there...

Although I do not understand the language I did try something...please see if it will work for you...

at

VBA Code:
Private Sub ListBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
try changing
VBA Code:
Modifrm.Show
to
VBA Code:
Modifrm.Show vbModeless
Thank you for the answer, I can explain more if you need
 
Upvote 0
Is it still doing the freezing... I tested and it froze on my side as well...after doing suggestion it did not freeze anymore.
 
Upvote 0
Not sure what the issue could have been... might be something in the calling of the userform somewhere... glad it is fixed now...
 
Upvote 0

Forum statistics

Threads
1,223,923
Messages
6,175,410
Members
452,640
Latest member
steveridge

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