Possible to maintain userform on workbook close?

largeselection

Active Member
Joined
Aug 4, 2008
Messages
358
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.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,224,595
Messages
6,179,798
Members
452,943
Latest member
Newbie4296

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