I have an App_SheetChange()
handler in an add-in that does some processing as modify their spreadsheets.
I've already optimized the handler to only perform the processing if the user's update happens within the range that the processing is dependent on (only one column).
But when users delete rows or insert rows, I don't need my routine to run.
How can I somehow detect that the change that resulted in the call to App_SheetChange()
was simply inserting/deleting a row, or in some other way ensure that inserting/deleting rows doesn't call App_SheetChange()
in the first place (which seems a bit heavy-handed)?
One potentially-important caveat: the code has to live within the add-in, I can't add macro code to individual workbooks.