PC Review


Reply
Thread Tools Rate Thread

Copy range from workbooks into one master sheet

 
 
J.W. Aldridge
Guest
Posts: n/a
 
      27th Mar 2009
Hi.

I have a folder that only contains 10 excel workbooks. I would like to
automatically open each folder, copy all data A5:J (whereever the data
ends) and paste into the open workbook (the one running the macro) on
the current page ("data") starting at a5 on down, then close the
folder it was copied from.

The location of the first workbook (of ten) is:
C:\Documents and Settings\1234\Desktop\09ABI\[Stuff1.xls]

thanx
 
Reply With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      27th Mar 2009
Try the first macro on this page
http://www.rondebruin.nl/copy3.htm

And change this code lines
Set BaseWks = Workbooks.Add(xlWBATWorksheet).Worksheets(1)
rnum = 1

To

Set BaseWks = ActiveWorksheet
rnum = 5


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"J.W. Aldridge" <(E-Mail Removed)> wrote in message
news:ffc7cd57-4e3c-44cd-93fa-(E-Mail Removed)...
> Hi.
>
> I have a folder that only contains 10 excel workbooks. I would like to
> automatically open each folder, copy all data A5:J (whereever the data
> ends) and paste into the open workbook (the one running the macro) on
> the current page ("data") starting at a5 on down, then close the
> folder it was copied from.
>
> The location of the first workbook (of ten) is:
> C:\Documents and Settings\1234\Desktop\09ABI\[Stuff1.xls]
>
> thanx
>
> __________ Information from ESET Smart Security, version of virus signature database 3970 (20090327) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
>
>



__________ Information from ESET Smart Security, version of virus signature database 3970 (20090327) __________

The message was checked by ESET Smart Security.

http://www.eset.com



 
Reply With Quote
 
J.W. Aldridge
Guest
Posts: n/a
 
      28th Mar 2009
Thanx...

How to change Worksheets(1) to all worksheets in workbook (except the
last)
Or
Worksheets Sun, Mon, Tue, Wed, Thu, Fri & Sat
 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      28th Mar 2009
Use the code here
http://www.rondebruin.nl/fso.htm

Or use my Merge add-in
http://www.rondebruin.nl/merge.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"J.W. Aldridge" <(E-Mail Removed)> wrote in message
news:4b3216a3-f7e3-45d6-9611-(E-Mail Removed)...
> Thanx...
>
> How to change Worksheets(1) to all worksheets in workbook (except the
> last)
> Or
> Worksheets Sun, Mon, Tue, Wed, Thu, Fri & Sat
>
> __________ Information from ESET Smart Security, version of virus signature database 3972 (20090328) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
>
>



__________ Information from ESET Smart Security, version of virus signature database 3972 (20090328) __________

The message was checked by ESET Smart Security.

http://www.eset.com



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy Rows from master workbook & paste in other workbooks farid2001 Microsoft Excel Programming 5 2nd Oct 2008 01:25 PM
Copy cells & sheet name to master sheet cottage6 Microsoft Excel Programming 1 23rd Apr 2008 10:16 PM
Copy Range Between Workbooks =?Utf-8?B?QnJpdGUgR2xvYmFsIChBcmljKQ==?= Microsoft Excel Programming 1 22nd May 2007 10:29 PM
copy data from several workbooks to a master workbook =?Utf-8?B?Q3Jlb2xh?= Microsoft Excel Programming 1 30th Oct 2006 07:10 PM
Copy a range in two different workbooks =?Utf-8?B?QmhhdnRvc2g=?= Microsoft Excel Programming 0 16th May 2005 11:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:20 AM.