Mi pare ovvio che tu debba mettere Integer, dal momento che stai ciclando su una proprietà che ha un indice Integer.
P.S.: VB.NET non è VB6, non dovresti usare né GoTo, né On Error né MsgBox.