Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving within the worksheet ordnance1 Excel Worksheet Functions 3 March 28th 08 03:45 AM
Moving a Worksheet jpiseler Excel Discussion (Misc queries) 6 September 6th 07 01:10 AM
Moving to a specific worksheet [email protected] Excel Discussion (Misc queries) 3 October 7th 06 05:14 PM
moving a worksheet..? Roy Excel Discussion (Misc queries) 2 September 29th 06 02:56 AM
moving worksheet to another workbook JohnE Excel Programming 1 July 29th 04 07:56 AM


All times are GMT +1. The time now is 04:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"