When it stops, what are the values of each of the arrData items you're attempting to compare? Are they each the same data type?
You can use these instructions Debugging in Excel VBA (In Easy Steps) (excel-easy.com) to view their contents at the time of the error, this should show you why the error is happening.