I am trying to write a macro. I am at the part where my reference ID can be found multiple times in a column. It is in a text box but the cell will only have the reference ID once. That reference ID can match up to multiple rows. I have the rest of the macro working fine. It's when I try to use find or findnext that I am messing up. I have a counter that looks up how many times my reference ID showed up in the column range I:I which I have assigned to a range variable. I subtract from that counter in a do while loop and use find next in it. The problem is after finding the first two unique values it just gets stuck on the second value it found and keeps populating that. This is my code so far.
If Counter > 0 Then
'Uses cellFound as a range set to our original find
Set cellFound = DidIFind.Find(valueToSearch)
'Keeps going till we find all the values that the counter ticks down
Do While Counter > 0
Set cellFound = cellFound.FindNext
Set cellFound = DidIFind.Find(valueToSearch)
'Marks row position of new duplicate find so we can add to ID string
Rw = cellFound.Row
ConcatString = ConcatString & ", " & lookUpSheet.Cells(Rw, Col).Value
'Counter ticks down by 1
Counter = Counter - 1
Loop
End If

