Sub 工资条()
r = Sheets(1).Cells(65536, 1).End(3).Row
l = Sheets(1).Cells(1, 256).End(1).Column
arr = Sheets(1).Range("a1:m1")
For x = 1 To r - 1
With Sheets(1)
brr = Range(.Cells(x + 1, 1), .Cells(x + 1, l))
End With
With Sheets(2)
Range(.Cells(3 * x - 2, 1), .Cells(3 * x - 2, l)) = Application.Transpose(Application.Transpose(arr))
Range(.Cells(3 * x - 1, 1), .Cells(3 * x - 1, l)) = Application.Transpose(Application.Transpose(brr))
.Cells(3 * x - 2, 1).NumberFormat = "@"
.Cells(3 * x - 2, 1) = Date
End With
Next
End Sub