title: action when a cell is clicked
body: <p>H!
  I am new to VBA.
  This maybe a too simple of a question, but I am struggling to use VBA:
  when a cell(1,1) is clicked as it has 1, the msgbox would show up saying &quot;hi&quot;</p>
  <pre><code>Sub test()
    'click action 'when cell(1,1) is clicked and if cells(1,1) is 1, msgbox saying &quot;hi&quot; will show up, if not nothing If Cells(1, 1) = 1 Then
    MsgBox &quot;hi&quot;
    Else 
  End If
  End Sub
  </code></pre>