Two Scenarios

1) If you know the start cell and end cell of Col A and Col H

for example A2:A98 and H2:H22 then use this code...

vb Code:
  1. '~~> If start cell and last cell is known in Col A and Col H
  2. Sub LoopCells()
  3.     Dim i As Long, j As Long
  4.     For i = 2 To 98 '<~~ for Col A
  5.         For j = 2 To 22 '<~~ for Col H
  6.             If Range("A" & i).Value = Range("H" & j) Then '<~~ or whatever comparison you want to make
  7.                 '~~> Your code
  8.             End If
  9.         Next j
  10.     Next i
  11. End Sub

2) If you know the start cell but not the end cell of Col A and Col H

for example A2:A?? and H2:H?? then use this code...

vb Code:
  1. '~~> If start cell is known in Col A and Col H
  2. '~~> But end cell is not known
  3. Sub LoopCells()
  4.     Dim rng1 As Range, rng2 As Range, aCl As Range, hCl As Range
  5.     Dim strCol_A_addr As String, strCol_H_addr As String
  6.    
  7.     '~~> Get the Col A Range
  8.     strCol_A_addr = Range(Range("A2"), Range("A2").End(xlDown)).Address
  9.     Set rng1 = Range(strCol_A_addr)
  10.    
  11.     '~~> Get the Col H Range
  12.     strCol_H_addr = Range(Range("H2"), Range("H2").End(xlDown)).Address
  13.     Set rng2 = Range(strCol_H_addr)
  14.    
  15.     For Each aCl In rng1  '<~~ for Col A
  16.         For Each hCl In rng2  '<~~ for Col H
  17.             If aCl.Value = hCl.Value Then '<~~ or whatever comparison you want to make
  18.                 '~~> Your code
  19.             End If
  20.         Next
  21.     Next
  22. End Sub

Hope this helps...