If Jerry and Tom aren't variables then they require inverted commas around them, ie:
VB Code:
  1. IF A="Tom" then
  2. MsgBox"dfsdf"
  3. END IF
  4. IF A= "Jerry" then
  5. MsgBox"DSFdsf"
  6. end if