Form causing Excel crash

Brian.Crawford

Board Regular
Joined
Oct 3, 2007
Messages
136
I have a small form that when I attempt to change even a simple "label" or any other part of it (ex. add a period '.' to the label text) results in the WB losing it's reference to the first WS in the book (both the WS and controls on it [ex. a combobox]). This loss of ref. occurs after I save the WB and then re-open it. If I haven't saved it yet it works normally after the change.
The loss of WS reference typically shows up as an error when trying to reference the WS as part of a Range statement ("Application-defined or object-defined error") during my initialization routine for the WB:
---Sheets("summary").Range("budgetyear") = WBInfo(1)
the WS is not protected at this point & WBInfo(1) has the correct data.
Interesting if I
-- ?range("budgetyear") [no dot]---in the immediate window it displays the correct value of budgetyear that pre-existed on the summary worksheet

I have deleted this form and recreated it from scratch but that has not helped. It consists of a combobox, label and a close button, but any change to it will trigger the error.

Upon dismissing the End/Debug dialog box and then attempting to close the WB (without saving) Excel immediately does a hard crash (faded 'white' screen of death) and then closes.

Any suggestions
Thanks all
Brian
 

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,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

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