Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A way to combine excel worksheets into one w/o cut and paste

Status
Not open for further replies.

amandarose80

Technical User
Jan 13, 2003
52
US
I have 26 tabs, a-z, I want to combine them into one worksheet. They all have the same columns.
Is it possible without cutting and pasting?
 
are you wanting to get a report from all the data or just combine it?
 
Just combine it so it's all on one worksheet for sorting and filtering.
 
So you want some VBA?
Code:
Sub test()
    Set wsSummary = ActiveSheet
    For Each ws In Worksheets
      If ws.Name <> wsSummary.Name Then
        With wsSummary.UsedRange
          ws.UsedRange.Copy _
            Destination:=wsSummary.[A1].Offset(.Row + .Rows.Count, 1)
        End With
      End If
    Next
End Sub
Hope this helps :)


Skip,
Skip@TheOfficeExperts.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top