'↓値に対しての処理*******************************************
Dim str As String
Dim i As Long
'↓店番号の処理------------
With TextBox2
str = .Value
For i = 1 To Len(str)
Worksheets("印刷").Cells(2, i + 11).Value = Mid(str, i, 1)
Next i
End With
'↓口座番号に対しての処理-----------
With TextBox3
str = .Value
For i = 1 To Len(str)
Worksheets("印刷").Cells(2, i + 15).Value = Mid(str, i, 1)
Next i
End With
'↓金額に対しての処理*-----------------
With TextBox1
str = "\" & .Value
w = 22 - Len(str)
For i = 1 To Len(str)
Worksheets("印刷").Cells(5, w + i).Value = Mid(str, i, 1)
Next i
End With
Worksheets("印刷").Range("A2").Value = TextBox4.Value
Worksheets("印刷").Range("A4").Value = TextBox5.Value
'**************************************************************
'印刷
Worksheets("印刷").PrintOut
コメントを残す