Just before the if Phrase(2) = Phrase(287) then ... line you could try Debug.Print Len(Phrase(2)); Len(Phrase(287)). I'm betting that they are not the same length.