Hi,
I'm getting an error that only occurs when exiting from Excel. The error is Compile error: Variable not defined for the following line:
where chkAirsure is a checkbox.
This line is contained within Private Sub cboPostage_Change, where cboPostage is a combobox on the same sheet. Basically the idea is that the checkbox is enabled or disabled depending on the value selected in the combobox. It all works perfectly when changing the value in the combobox, but if I exit Excel whilst this sheet is open then I get the error, even if I just open the sheet and then exit Excel immediately without changing anything (why should this subroutine even be executing in this case?)
I have Option Explicit at the top of the code - removing this gets rid of the problem, but I want to keep it in for obvious reasons and sort out the problem properly.
Any help greatly appreciated,
Vindaloo
Bookmarks