Option Explicit
Private Sub TextBox1_GotFocus()
MsgBox "Hi"
End Sub
'Replace MsgBox with your macro or a call to a macro
Private Sub TextBox1_LostFocus()
MsgBox "Bye"
End Sub
Private Sub TextBox4_GotFocus()
ActiveSheet.Unprotect
End Sub
'Replace MsgBox with your macro or a call to a macro
Private Sub TextBox4_LostFocus()
ActiveSheet.Protect
End Sub