ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Need help i moving one worksheet to another (https://www.excelbanter.com/excel-programming/316607-need-help-i-moving-one-worksheet-another.html)

psk[_7_]

Need help i moving one worksheet to another
 

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


Tom Ogilvy

Need help i moving one worksheet to another
 
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





All times are GMT +1. The time now is 12:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com