Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Combining specific ranges from multiple worksheets into one

I need to combine (Copy/ Pastelink ) several worksheets into 1 Summary
sheet but I dont need the first 3 rows or last 4 rows of the worksheet
to be copied to the Summary worksheet. except for the first sheet.
The sheets are all formatted alike, but each sheet has varying amounts
of data. All go from A5: to column U except the first sheeet which will
start at A1

I will like to keep the page formatting also. (Shading, colors etc.. )
Headings from the first sheet , Sheet 1 is to be used for Headings of
the summary sheet. It does not have to be created in code.

I dont want the last 4 rows of any sheet posted to the summary sheet.

Sheets 1 - 10 included. Sheet names Sheet 1 - Sheet 10

Any working code samples or help appreciated

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 121
Default Combining specific ranges from multiple worksheets into one

If you can be sure that no used cells appear below the data on each sheet,
then

Sub grabRowsIWant()
Dim Sht As Worksheet
Dim SumSht As Worksheet

Set SumSht = Worksheets("SummarySheet")

For Each Sht In ThisWorkbook.Worksheets
If Sht.Name < SumSht.Name Then
Sht.Range("A4:A" & Sht.UsedRange.Rows.Count - 4).EntireRow.Copy
SumSht.Range("A" & SumSht.UsedRange.Rows.Count - 3).Insert
Shift:=xlDown
End If
Next Sht
End Sub



"simora" wrote in message
...
I need to combine (Copy/ Pastelink ) several worksheets into 1 Summary
sheet but I dont need the first 3 rows or last 4 rows of the worksheet to
be copied to the Summary worksheet. except for the first sheet.
The sheets are all formatted alike, but each sheet has varying amounts of
data. All go from A5: to column U except the first sheeet which will start
at A1

I will like to keep the page formatting also. (Shading, colors etc.. )
Headings from the first sheet , Sheet 1 is to be used for Headings of the
summary sheet. It does not have to be created in code.

I dont want the last 4 rows of any sheet posted to the summary sheet.

Sheets 1 - 10 included. Sheet names Sheet 1 - Sheet 10

Any working code samples or help appreciated



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Combining specific ranges from multiple worksheets into one


I am trying to copy a specific range from 30 worksheets onto a summar
sheet, where I can sort the data. I thought this solution might hel
(even though I want the summary to be dynamic, but when I tried usin
the code, and I get a syntax error at "Shift:=xlDown".

Thanks,
Daw

--
crowleyd
-----------------------------------------------------------------------
crowleydl's Profile: http://www.excelforum.com/member.php...fo&userid=2596
View this thread: http://www.excelforum.com/showthread.php?threadid=37511

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default Combining specific ranges from multiple worksheets into one

Dawn,

Record the steps while doing this manually. The recorded code should show
you the syntax you need.

--
steveB

Remove "AYN" from email to respond
"crowleydl" wrote
in message ...

I am trying to copy a specific range from 30 worksheets onto a summary
sheet, where I can sort the data. I thought this solution might help
(even though I want the summary to be dynamic, but when I tried using
the code, and I get a syntax error at "Shift:=xlDown".

Thanks,
Dawn


--
crowleydl
------------------------------------------------------------------------
crowleydl's Profile:
http://www.excelforum.com/member.php...o&userid=25968
View this thread: http://www.excelforum.com/showthread...hreadid=375119



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
Combining Multiple Worksheets Sarah Excel Discussion (Misc queries) 4 June 1st 07 04:55 PM
combining multiple worksheets Nydia Excel Discussion (Misc queries) 0 February 15th 07 09:05 PM
Combining multiple worksheets tina Excel Worksheet Functions 0 September 29th 06 09:48 AM
Most efficient formula/combining multiple data cell ranges/seperat Tiff New Users to Excel 1 August 2nd 06 04:56 PM
Combining specific ranges from multiple worksheets into one simora Excel Worksheet Functions 0 May 31st 05 12:39 AM


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