Results 1 to 3 of 3

Merge Multiple Worksheets to One

Threaded View

  1. #1
    Registered User
    Join Date
    11-03-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    22

    Merge Multiple Worksheets to One

    Hello,

    Very new to VBA so any help is much appreciated!

    I have a workbook with over 25 worksheets, of these worksheets I would like to merge 16 of them to one "Master" worksheet.

    These 15 worksheets are all in the same format with Row 1 being headings.
    Each worksheet is created from a dynamic list of data.

    I have found the code below which I have tried using however the problem with this is that it merges ALL worksheets I only want to merge the worksheets that I specify.

    Dim J As Integer
     On Error Resume Next
     Sheets(1).Select
     Worksheets.Add
     Sheets(1).Name = "Combined"
     Sheets(2).Activate
     Range("A1").EntireRow.Select
     Selection.Copy Destination:=Sheets(1).Range("A1")
     For J = 2 To Sheets.Count
     Sheets(J).Activate
     Range("A1").Select
     Selection.CurrentRegion.Select
     Selection.Offset(1, 0).Resize(Selection.Rows.Count - 1).Select
     Selection.Copy Destination:=Sheets(1).Range("A65536").End(xlUp)(2)
     Next
     End Sub
    Thank you
    Last edited by Dnass; 11-10-2013 at 07:24 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. merge multiple worksheets into one
    By ge0rge in forum Excel General
    Replies: 4
    Last Post: 09-06-2008, 06:38 AM
  2. [SOLVED] merge multiple worksheets
    By dbsudy in forum Excel General
    Replies: 0
    Last Post: 03-13-2006, 04:20 PM
  3. how to merge ranges from multiple worksheets
    By crowleydl in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-05-2005, 02:24 PM
  4. How do I merge multiple worksheets in excel ?
    By rene in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-04-2005, 01:05 PM
  5. How do I merge multiple worksheets into 1?
    By yoyoyojo in forum Excel General
    Replies: 0
    Last Post: 01-13-2005, 06:44 PM

Tags for this Thread

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