
In fact, this is a normal situation, and the behavior of column auto-expanding is the same as that of row auto-expanding.
The SheetChange event does not care about the format change, it only cares about the actual content change.
When adding a row, the format of A5~C5 has changed, the content of B5 has changed, the event is triggered once, when you undo, the format of A5~C5 has changed, but there is no cell content change, so it will not be triggered at this time.
When adding columns, please note that when the content of D3 changes, D1 also automatically adds a column name, so the SheetChange event is triggered twice. We can also see this behavior in the GIF you provided.
When undoing, the column name of D1 disappears and the event is triggered once.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.