Hello All,
I am having an issue with this little piece of code. For some reason it is only transposing the information every other line and has been driving me crazy. I am still pretty new to VBA, so any help would be greatly appreciated.
Thank you in advance.
I am having an issue with this little piece of code. For some reason it is only transposing the information every other line and has been driving me crazy. I am still pretty new to VBA, so any help would be greatly appreciated.
Code:
Dim numrows As Integer
Dim counter As Integer
Dim x As Integer
Dim y As Integer
Dim trans As Integer
numrows = Range("A11", Range("A1").End(xlDown)).Rows.Count
Range("A11:D11").Select
counter = 1
Do Until x = numrows
trans = counter * 4
counter = counter + 1
Application.CutCopyMode = True
Selection.Copy
ActiveCell.Offset(1, 0).Select
Range(Cells(Selection.Row, 1), Cells(Selection.Row, 4)).Select
Application.Wait Now + #12:00:01 AM#
Range("g9:g12").Offset(trans, 0).PasteSpecial Transpose:=True
x = x + 1
Application.Wait Now + #12:00:01 AM#
Loop
End Sub
Last edited by a moderator: