I have the following code which currently works, but does not display the way I want it to. I am new to VBA so I used this template from the web.
It makes a sheet called "Archive" then prints all the data I have in 40 other sheets onto it. The problem is that it from reads top to bottom.
Public Sub m()
Dim lRow As Long
Dim sh As Worksheet
Dim shArc As Worksheet
Set shArc = ThisWorkbook.Worksheets("Archive")
For Each sh In ThisWorkbook.Worksheets
Select Case sh.Name
Case Is <> "Archive"
lRow = shArc.Range("A" & Rows.Count).End(xlUp).Row
sh.Range("B1:M247").Copy
_Destination:=shArc.Range("A" & lRow)
End Select
Next
Set shArc = Nothing
Set sh = Nothing
End Sub
I want the macro to paste the data so that it is read from from left to right.
TLDR: code gathers data but pastes it all vertically. I want it to paste horizontally. can anyone alter it?
<br />and added code formatting to make your post more readable. Please double check that I didn't accidently delete a character around these two lines:sh.Range("B1:M247").Copyand_Destination:=shArc.Range("A" & lRow)Correct if needed.