Sub t() Dim sbuf As String Dim iLen As Long Dim i As Long sbuf = "123456" iLen = Len(sbuf) For i = 1 To iLen Debug.Print Mid(sbuf, i, 1) Next i End Sub