I have a very simple Excel workbook (much cut down from the real one!) with one sheet on which there is a single SpinButton control. The SpinUp event code for the button is
Private Sub SpinButton1_SpinUp() ActiveWorkbook.Close End Sub
When I click the Up arrow on the SpinButton, Excel crashes with the helpful message “Excel has caused an error in EXCEL.EXE. Excel will now close”. The same happens on two computers, one running Me and one W2000.
If I replace the SpinButton with a CommandButton with the same code in its Click event, all is well. A simple workaround is to replace the spinbutton with two command buttons, but I wondered if anyone had any idea why the problem occurs.
Thanks
Ian.