February 23, 2019
October 5, 2010
You've mis-spelled MsgBox
Your line should be
MsgBox "You have entered wrong info!", vbCritical
When the error is generated the VBA debugger would have highlighted this line to show you where the error was, and the error message was 'Sub or function not defined'