Dim s As String = "Square" & vbCrLf & "Enix" Dim i As Integer = s.IndexOf(vbCrLf) MsgBox(i, vbSystemModal)