Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi, I need help in copying two worksheets in different workbooks into on workbook with two sheets . Example report1.xls has one sheet name report1 report(1) .xls has one sheet name report1(1) i want to move this two into one workbook name newexcel.xls with two sheets name report1 and report1(1) Can anyone help me in writing the code ... Thanks Punith -- ps ----------------------------------------------------------------------- psk's Profile: http://www.excelforum.com/member.php...fo&userid=1573 View this thread: http://www.excelforum.com/showthread.php?threadid=27773 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
assume newexcel.xls does not exist and the other two workbooks are open.
Workbooks("Report1.xls").Worksheets("report1").Cop y Workbooks("Report(1).xls").Worksheets("report1(1)" ).Copy _ After:=Activeworkbook.worksheets(1) ActiveWorkbook.SaveAs Filename:="C:\MyFolder\newexcel.xls" -- Regards, Tom Ogilvy "psk" wrote in message ... Hi, I need help in copying two worksheets in different workbooks into one workbook with two sheets . Example report1.xls has one sheet name report1 report(1) .xls has one sheet name report1(1) i want to move this two into one workbook name newexcel.xls with two sheets name report1 and report1(1) Can anyone help me in writing the code ... Thanks Punitha -- psk ------------------------------------------------------------------------ psk's Profile: http://www.excelforum.com/member.php...o&userid=15738 View this thread: http://www.excelforum.com/showthread...hreadid=277734 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Moving within the worksheet | Excel Worksheet Functions | |||
Moving a Worksheet | Excel Discussion (Misc queries) | |||
Moving to a specific worksheet | Excel Discussion (Misc queries) | |||
moving a worksheet..? | Excel Discussion (Misc queries) | |||
moving worksheet to another workbook | Excel Programming |