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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
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,215,106
Messages
6,123,123
Members
449,096
Latest member
provoking

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