try this in that case

Code:
Private Sub Worksheet_Calculate()
    
    Application.EnableEvents = False
    If Range("M5").Value <> "HOTL_MOTL" Then
        Range("22:25").EntireRow.Delete
    Else
        Range("22:25").EntireRow.Insert
    End If
    Application.EnableEvents = False
    
End Sub