Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Include Worksheets From Workbooks into ONE new Workbook


II have 5 Workbooks. Each have one worksheet. I want to create a new
workbook that includes each of the worksheets from each of the five
workbooks. how do i do that? One problem I forsee is that each of the
worksheets are named "Sheet 1" by default.

thoughts? thanks.


--
tcgaines
------------------------------------------------------------------------
tcgaines's Profile: http://www.excelforum.com/member.php...o&userid=29608
View this thread: http://www.excelforum.com/showthread...hreadid=493857

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Include Worksheets From Workbooks into ONE new Workbook

Hi tcgaines

Try
http://www.rondebruin.nl/copy3.htm

--
Regards Ron de Bruin
http://www.rondebruin.nl


"tcgaines" wrote in message
...

II have 5 Workbooks. Each have one worksheet. I want to create a new
workbook that includes each of the worksheets from each of the five
workbooks. how do i do that? One problem I forsee is that each of the
worksheets are named "Sheet 1" by default.

thoughts? thanks.


--
tcgaines
------------------------------------------------------------------------
tcgaines's Profile: http://www.excelforum.com/member.php...o&userid=29608
View this thread: http://www.excelforum.com/showthread...hreadid=493857



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Include Worksheets From Workbooks into ONE new Workbook

Maybe if you also disable the events it is faster

Before the loop
Application.EnableEvents = False


and after the code is ready
Application.EnableEvents = True


--
Regards Ron de Bruin
http://www.rondebruin.nl


"tcgaines" wrote in message
...

perfect!!! i dont know why its soooo slow (about 3-4 minutes) but it
works!!


--
tcgaines
------------------------------------------------------------------------
tcgaines's Profile: http://www.excelforum.com/member.php...o&userid=29608
View this thread: http://www.excelforum.com/showthread...hreadid=493857



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Include Worksheets From Workbooks into ONE new Workbook

Depending what your code is up to sometimes turning calcualtions off wile the
macro is running will speed things up. As with any application level events
it is best to include an error handler when you modify these settings
(Calculation, Alerts, Events)...

Sub DoYourStuff()
on error goto errorhandler
application.calculation = xlManual
applicaton.enableevents = false
'Your code here

ErrorHandler:
application.calculation = xlAutomatic
applicaton.enableevents = true
End Sub

--
HTH...

Jim Thomlinson


"tcgaines" wrote:


perfect!!! i dont know why its soooo slow (about 3-4 minutes) but it
works!!


--
tcgaines
------------------------------------------------------------------------
tcgaines's Profile: http://www.excelforum.com/member.php...o&userid=29608
View this thread: http://www.excelforum.com/showthread...hreadid=493857


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Include Worksheets From Workbooks into ONE new Workbook


perfect!!! i dont know why its soooo slow (about 3-4 minutes) but it
works!!


--
tcgaines
------------------------------------------------------------------------
tcgaines's Profile: http://www.excelforum.com/member.php...o&userid=29608
View this thread: http://www.excelforum.com/showthread...hreadid=493857

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
How do I write an array to include all worksheets in a workbook? Jodie Excel Worksheet Functions 8 October 13th 09 04:06 PM
2 Workbooks and 6 Worksheets - Need to Populate 1 Workbook MichelleS Excel Worksheet Functions 15 October 28th 06 10:26 PM
Copy range from multiple workbooks and include workbook name Barb Reinhardt Excel Programming 1 October 5th 05 04:19 PM
Copying Several Workbooks into one Workbook as Worksheets Blue_Crystal New Users to Excel 1 May 26th 05 02:19 PM
Is it possible to include Excel worksheets/workbooks into COM Addins ? alkan Excel Programming 1 November 14th 03 02:04 PM


All times are GMT +1. The time now is 10:21 PM.

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"