EXCEL macro how to implement the conditions specified in the order of a

Users questions:Able to have produced successful EXCEL macro commands (buttons) to specify a the implementation of the conditions is that when conditions do not match, the macro command execution can not, and make prompt. Only when the specified conditions match the, the macro command button can effectively implement - such as designated in the table A1Cell for the "YES", the macro command to perform, if it is other content, that any implementation can not. Please gurus help me solving this problem solution, how like to add this condition has been produced after the macro command. Please help me explain. Rookie hands high score served, thank you!
Experts answer:SubAA () If [A1] "YES" ThenMsgBox "pop-up information can be its own change!!! quotes inside!!!" ExitSubEndIf 'your macro commands EndSub
  • This information provided by the users.Thanks!