title: VBA - How to declare "Cell" variable
body: <p>Apologies for the potentially very easy to answer question. I was trawling through some code on the site regarding how you search for a row and paste it in another worksheet, the code being the one below:</p>
  
  <pre><code>Sub Test()
  For Each Cell In Sheets(1).Range("J:J")
    If Cell.Value = "131125" Then
      matchRow = Cell.Row
      Rows(matchRow &amp; ":" &amp; matchRow).Select
      Selection.Copy
  
      Sheets("Sheet2").Select
      ActiveSheet.Rows(matchRow).Select
      ActiveSheet.Paste
      Sheets("Sheet1").Select
    End If
  Next
  End Sub
  </code></pre>
  
  <p>I was wondering what the "Cell" should be declared as, as in:</p>
  
  <pre><code>Dim Cell As ...
  </code></pre>
  
  <p>I'm aware that without "Option Explicit", this is irrelevant, but I'm curious nonetheless, so please do help and explain if you can.</p>
  
  <p>Thank you for your help in advance :)</p>