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.
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.