Khi nhấn nút insert dòng hoặc delete dòng thì bảng Protect Sheet hiện thị như sau:

Mong các bác giúp em chỉnh sửa lại code để làm sao khi nhấn nút insert dòng hoặc delete dòng thì bảng Protect Sheet luôn hiển thị như sau:

Chọn hết chỉ không chọn 04 dòng là Insert row, Insert columns, delete row, delete columns.
code như sau:

Mong các bác giúp em chỉnh sửa lại code để làm sao khi nhấn nút insert dòng hoặc delete dòng thì bảng Protect Sheet luôn hiển thị như sau:

Chọn hết chỉ không chọn 04 dòng là Insert row, Insert columns, delete row, delete columns.
code như sau:
em cảm ơn nhiều.Sub Insert()Application.ScreenUpdating = False
Sheet1.Unprotect Password:="10"
Selection.Insert
Sheet1.Protect Password:="10"
Application.ScreenUpdating = True
End Sub
---------------------------------------------
Sub Delete()
Application.ScreenUpdating = False
Sheet1.Unprotect Password:="10"
Selection.Delete
Sheet1.Protect Password:="10"
Application.ScreenUpdating = True
End Sub