Results 1 to 8 of 8

Combine all worksheets into a single worksheet in a new workbook

Threaded View

  1. #1
    Registered User
    Join Date
    03-26-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    8

    Combine all worksheets into a single worksheet in a new workbook

    I have the following code to copy one sheet at a time to a "master" worksheet (Toyota") in the same workbook

    What I need to do is copy all worksheets onto a single worksheet in a new workbook (only rows with data in column A)

    In this example "RAV4" is the source sheet
    Sub CombineWS()
    
    'Combine all worksheets into one and remove blank rows
    
    
    Intersect(Sheets("RAV4").Columns("A:AC"), Sheets("RAV4"). _
                                                  Columns("A").SpecialCells(xlCellTypeConstants). _
                                                  EntireRow).Copy Sheets("Toyota").Cells(Rows.Count, 1).End(xlUp)(2)
    End Sub
    Thanks in advance


    Alan
    Last edited by ajm1949; 04-02-2012 at 03:10 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1