It says
"Next without For"
You left out an End if in the Nested If ...End if
If strUsername = arrNames(intArray, 0) Then
If strPassword = arrNames(intArray, 1) Then
varFound = True
Exit For
' This is where you should have an End if
End If