Excel VBA Worksheet_Change Event Is Not Triggered When Last Row of Table is Deleted!

DanBurleson 1 Reputation point
2022-09-27T19:18:07.987+00:00

245206-demoexceltabledeletebug3.gifSimple to recreate with a single MsgBox in the Worksheet_Change sub and a table with two rows. Deleting all but the last row triggers Worksheet Change, but deleting the last one does not. There are no application events disabled. Only one line of code. A MsgBox.

Microsoft 365 and Office | Development | Other
Developer technologies | Visual Basic for Applications
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.