Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 312
Default Copy contents from all sheets into 1

Hello all. If I have a workbook that have several sheets, how can I copy
the contents of each sheet and paste that one under the other on the sheet
called "Consolidated". So basically I will be consolidating all sheets in
workbook except 'Consolidated' onto the sheet 'Consolidated', one under he
other. Thanks!


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Copy contents from all sheets into 1

set sh1 = Worksheets("Consolidated")
for each sh in Worksheets
if sh.Name < sh1.Name then
sh.Usedrange.copy Destination:= _
sh1.cells(rows.count,1).End(xlup)(2)
end if
Next

would be a start and should work if you data is organized as a table with
the bottom left corner filled in (column A)

--
Regards,
Tom Ogilvy




"Steph" wrote in message
...
Hello all. If I have a workbook that have several sheets, how can I copy
the contents of each sheet and paste that one under the other on the sheet
called "Consolidated". So basically I will be consolidating all sheets in
workbook except 'Consolidated' onto the sheet 'Consolidated', one under he
other. Thanks!




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
copy cell info to other sheets, other sheets dont contain all row. Ja Excel Worksheet Functions 1 November 1st 09 12:53 AM
Copying contents from multiple sheets onto one EducatingMom Excel Worksheet Functions 1 August 2nd 06 03:30 PM
Could someone please help me w/ matching the contents of each two sheets? bxc2739 Excel Discussion (Misc queries) 4 April 26th 06 11:04 PM
in VBA Sheets("mysheet").Copy Befo=Sheets(1) how do i get a reference to the newly created copy of this sheet? Daniel Excel Worksheet Functions 1 July 6th 05 09:57 PM
Deleting Contents of Sheets ExcelMonkey[_190_] Excel Programming 2 March 25th 05 10:06 AM


All times are GMT +1. The time now is 12:07 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"