Any known correlation between Userforms and Corrupted Personal workbooks?

Urtehnoes

New Member
Joined
Feb 22, 2014
Messages
19
Hi everyone.

I've lately noticed an issue with my Personal.xlsb workbook becoming corrupted when I create a macro that utilizes userforms. I noticed this tends to happen when I'm testing the code, typically after stopping the macro with the blue stop button on the toolbar.

Typically once the data is corrupted, I can open Excel just fine, but Excel freezes when I try to open the VBE window. I can then CTRL + Shift + ESC and close Excel, which then opens the Personal.xlsb just fine. I can then transfer the modules to a new workbook, and delete my Personal.xlsb, add a new Personal.xlsb, and it all works fine again.

I know that Excel has odd practices for updating the VB Pcode when it compiles, and that can sometimes lead to corrupted code. However this seems to only happen when I'm testing something using a userform. I just wanted to see if anyone had experienced this before / if there was a known issue / or if it's something as simple as poor garbage collecting practices on my part. This doesn't happen often, just about once every two months, but I'm afraid it could carry over to the end user and I'd hate to corrupt their workbook.

Thanks!
 
Last edited:

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,215,336
Messages
6,124,338
Members
449,155
Latest member
ravioli44

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