Set rng2 = Sheets("data").Columns("A:A")
Set rng3 = Sheets("data").Columns("B:B")
Set rngFound = rng2.Find(What:=Compij, lookAt:=xlWhole, MatchByte:=False)
If rngFound Is Nothing Then
MsgBox "One compound in this list was not found" & " " & Compij
Exit Sub
End If
Set rngFound2 = rng3.Find(What:=Compij2, After:=cellk, lookAt:=xlWhole, Mathbyte:=False)
I get an error at this last command.