I have a Worksheet_Change that crashes when the user manually changes a cell value, but doesn't crash if a macro changes the cell value.
I have a cell (Range("SelectMtg")) with Data Validation:List. When a selection is made the Worksheet_Change() checks to see if the data has been saved and if it's saved it then copies the Target.Value into another cell (Range("MtgSelected")). If the data hasn't been saved it reverts Target.Value back to it's prior value.
I also have a Form Button on the sheet that runs a macro that locates the next Mtg in the list and replaces .Range("SelectMtg") with the next Mtg.
During normal data entry the button is used to set up the next Mtg, but the dropdown picklist allows the user to select a specific Mtg when necessary. This system has been working for a few months with no problem.
Now today the Sub crashes with an error code 1004 "Application or Object-Defined Error".
But only if the user changed the value manually by picking from the dropdown. If the user clicks the button it works fine.
This file is not mine to post but here a simplified version of Worksheet_Change().
The macro attached to the button is basically this
Is there some reason that a sub would crash when the user changes a value, but doesn't crash when a different sub changes the value?
Bookmarks