Possible to maintain userform on workbook close?

largeselection

Active Member
Joined
Aug 4, 2008
Messages
353
Hi,

So I have a Userform which updates progress as to where in the process the workbook is currently at. It works great, the only issue I have is that near the end of the routine, I have to free up memory because this is very data intensive. So in the code, I have a "resumecode" that I trigger to launch 20 seconds after I have the workbook close. That part works well as well.

So when it's wrapping up, I say wait 20 seconds then run this resumecode portion, the workbook closes, then 15 seconds later or so the workbook reopens and runs the last bit of code (and this makes the memory usage go way down).

My question - Is it possible to have the userform stay open during this workbook close, pause, re-open? As of now, when the workbook closes, the userform closes as well.
 

Some videos you may like

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Watch MrExcel Video

Forum statistics

Threads
1,123,400
Messages
5,601,467
Members
414,452
Latest member
Dannysamworth

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
Top