Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Can somebody help me create a macro to copy COLUMN 1 of all sheets in a workbook(there are about 12 sheets) into another sheet?? Cheers Rajula |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub CopyData()
Dim bk as workbook, sh as worksheet Dim i as Long, rng as Range set bk = Workbooks("SourceData.xls") set sh = Workbooks("Summary").Worksheets(1) i = 1 for each sh in bk.Worksheets set rng = sh.Columns(1) rng.copy Destination:=sh.Columns(i) i = i + 1 Next End sub -- Regards, Tom Ogilvy "Rajula" wrote: Hi, Can somebody help me create a macro to copy COLUMN 1 of all sheets in a workbook(there are about 12 sheets) into another sheet?? Cheers Rajula |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy multiple sheets to seperate workbooks | Excel Discussion (Misc queries) | |||
Seperate data from one sheet to multiple sheets based on a column | Excel Discussion (Misc queries) | |||
Copy rows of one sheet into mutiple sheets based on column value | Excel Discussion (Misc queries) | |||
copy all named ranges in a sheet to seperate sheets | Excel Programming | |||
in VBA Sheets("mysheet").Copy Befo=Sheets(1) how do i get a reference to the newly created copy of this sheet? | Excel Worksheet Functions |