I hope I can explain this properly.
I have a combobox_change sub that amends two fields depending on the value of what's selected. Those fields, however, are unlocked and able to be overwritten by the user.
The problem is that this change event seems to be running upon either workbook close and/or open, as after saving, closing, and re-opening, the fields are replaced with the values that would be provided based upon the combobox_change code, and NOT what the user may have subsequently typed.
Is there any way to either prevent this code from running upon workbook close/open...or any other ideas/workarounds?
I thought of possibly writing workbook open and beforeclose events to lock those fields and therefore prevent changes, but that seems more difficult than necessary.
I have a combobox_change sub that amends two fields depending on the value of what's selected. Those fields, however, are unlocked and able to be overwritten by the user.
The problem is that this change event seems to be running upon either workbook close and/or open, as after saving, closing, and re-opening, the fields are replaced with the values that would be provided based upon the combobox_change code, and NOT what the user may have subsequently typed.
Is there any way to either prevent this code from running upon workbook close/open...or any other ideas/workarounds?
I thought of possibly writing workbook open and beforeclose events to lock those fields and therefore prevent changes, but that seems more difficult than necessary.