REM ***** BASIC ***** Sub Main Dim en As String en = "15" Dim myarray As Variant Dim res As String res = "" + vbCrLf res = res + "" + vbCrLf res = res + vbTab + "" + vbCrLf res = res + vbTab + vbTab + "" + vbCrLf myarray = Range("b12:c" + en).Value For i = 1 To UBound(myarray) res = res + vbTab + vbTab + vbTab + "" + vbCrLf Next res = res + vbTab + vbTab + "" + vbCrLf res = res + vbTab +"" + vbCrLf res = res + "" MsgBox res End Sub