title: If cell address = cell address Then
body: <p>Hi I'm having an issue working out how to get my if statement to check if cell  address's match instead of the value. </p>
  
  <pre><code>'Top
  Dim cellT As String
  Dim columnT As Integer
   Dim rowT As Integer
  
  'Bottom
  Dim cellB As String
  Dim columnB As Integer
  Dim rowB As Integer
  
  If cellT = cellB Then
      Range("A1").Select
  
  Else
  
      More code
  
  End If
  </code></pre>
  
  <p>The cells are normally the same cell but if a new line is inserted I want the next section "more code" to be run.</p>