Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 177
Default Copying data from multiple sheets into one sheet

Hi,

I'm trying to write a macro. Currently it asks the user how many sheets the
user has e.g. 5 and opens the 5 sheets.
What i need to be able to do is copy the data from these sheets into one
sheet then output it into another workbook.
So if the first sheet has 6 rows, then those rows will start at (A1)
if the next one has 2 rows it should start at the 7th row


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Copying data from multiple sheets into one sheet

Hi Todd,

See Ron De Bruin's copy routines at:

http://www.rondebruin.nl/copy2.htm#UsedRange

See particularly Ron's Test3 macro.

This will create a summary sheet named 'Master'. To copy the summary sheet
to a new workbook, you could add the following lines to Ron's macro

DestSh.Copy
ActiveWorkbook.SaveAs "SummaryBook" & ".xls"

Insert these lines immediately before the existing line:

Application.ScreenUpdating = True

Change "SummaryBook" to a name appropriate to your needs.

If this code is to be placed other than in the workbook to be summarised,
change each instance of

"ThisWorkbook" to ActiveWorkbook

and ensure that the workbook to be summarised is the active workbbook before
running the code.

---
Regards,
Norman



"Todd" wrote in message
...
Hi,

I'm trying to write a macro. Currently it asks the user how many sheets
the
user has e.g. 5 and opens the 5 sheets.
What i need to be able to do is copy the data from these sheets into one
sheet then output it into another workbook.
So if the first sheet has 6 rows, then those rows will start at (A1)
if the next one has 2 rows it should start at the 7th row




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
Copying data from several sheets to a front sheet Marie Green Excel Worksheet Functions 1 April 9th 09 11:51 AM
Copying Data from Multiple Sheets to One sheet MAB Excel Worksheet Functions 1 January 15th 08 08:28 PM
copying one cell in multiple sheets into a column on one sheet LeahR Excel Worksheet Functions 3 June 1st 07 05:55 PM
copying data in multiple sheets KT Excel Worksheet Functions 1 November 8th 06 09:28 PM
Copying Row Data From Multiple Sheets To Master aus74 Excel Programming 4 November 19th 03 02:19 PM


All times are GMT +1. The time now is 11:23 AM.

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

About Us

"It's about Microsoft Excel"