Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Copy column A and column D from all sheets into new worksheet
How can I copy column A and column D from all sheets to a new sheet
while offsetting the paste ie the 2 column being pasted next to the other thxs posting again as i've got an unclear answer from an ... |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Copy column A and column D from all sheets into new worksheet
Hi,
I assume Sheet1 columns A and D are copied to A,B on "newsheet" and A and D from other sheets are copied to columns C,D/E,F etc as your request indicates you want to copy columns in total to a single new sheet. Sub CopyAandD() Dim oRng As Range Dim newsh As Worksheet Set newsh = Worksheets("Sheet3") ' <==== Change to your "new sheet" Set oRng = newsh.Range("A:A") ' <===== Copy to column A For Each Sh In ActiveWorkbook.Worksheets If Sh.Name < newsh.Name Then Sh.Range("A:A,D:D").Copy oRng Set oRng = oRng.Offset(0, 2) End If Next End Sub "al007" wrote: How can I copy column A and column D from all sheets to a new sheet while offsetting the paste ie the 2 column being pasted next to the other thxs posting again as i've got an unclear answer from an ... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Copy column from different sheets and plot a graph | Excel Discussion (Misc queries) | |||
Copy rows of one sheet into mutiple sheets based on column value | Excel Discussion (Misc queries) | |||
how to copy contents of one column to another column in another worksheet | Excel Discussion (Misc queries) | |||
Copy column B and column E from all sheets into new worksheet | Excel Programming | |||
how to copy sheets keeping defined column widths | Excel Worksheet Functions |