+ Reply to Thread
Results 1 to 4 of 4

combine number of worksheets with text into one master sheet

Hybrid View

  1. #1
    Registered User
    Join Date
    10-20-2014
    Location
    Northampton
    MS-Off Ver
    2010
    Posts
    1

    combine number of worksheets with text into one master sheet

    Hi

    I have a number of worksheets that contain text, which I would like to combine into one master sheet within the same workbook.

    The sheets that i want to include have the same number of rows and columns, but there are also sheets that I do not wish to include.

    As the original spreadsheet is confidential, Ive included a very quick, simple workbook to work from.

    Please note that sheet 3 isnt to be used in the consolidation.

    Please can someone help me with a formula or macro that I can use and can automatically update if one cell changes (ie text)

    Thank you for your help in advance, its been racking my brains!!!
    Attached Files Attached Files

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: combine number of worksheets with text into one master sheet

    Please, can you give us an idea of what the Master sheet would look like?
    From your attached workbook, it would be great to see what/how data from sheet1 and sheet2 are copied to the Master sheet.
    Right now, you gave us too few instructions.
    Also, it would be helpfull that sheet1 and sheet2 are not alike unless they are to be at some point.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Registered User
    Join Date
    08-28-2014
    Location
    india
    MS-Off Ver
    2007
    Posts
    92

    Re: combine number of worksheets with text into one master sheet

    Sub Consolidate()
    '
    ' Macro1 Macro
    '
    ' Keyboard Shortcut: Ctrl+Shift+Q
    '
    
    ' Appends data from all the selected worksheets onto the end of the
    ' active worksheet.
    
    Const NHR = 0 'Number of header rows to not copy from each MWS
    
    Dim MWS As Worksheet 'Worksheet to be merged (appended)
    Dim AWS As Worksheet 'Worksheet to which the data are transferred
    Dim FAR As Long 'First available row on AWS
    Dim LR As Long 'Last row on the MWS sheets
    
    Set AWS = ActiveSheet
    
    For Each MWS In ActiveWindow.SelectedSheets
    If Not MWS Is AWS Then
    FAR = AWS.UsedRange.Cells(AWS.UsedRange.Cells.Count).Row + 1
    LR = MWS.UsedRange.Cells(MWS.UsedRange.Cells.Count).Row
    MWS.Range(MWS.Rows(NHR + 1), MWS.Rows(LR)).Copy AWS.Rows(FAR)
    End If
    Next MWS
    
    End Sub
    I think this is what you want....
    this macro will help you to combine all the data of selected sheets in to active sheet.
    you just need to select all the sheets from which data has to be consolidated and press ctrl alt Q to run the macro.

    DON'T FORGET, GIVE US SOME REP!
    Click on the STAR "Add reputation" icon at the bottom.

  4. #4
    Registered User
    Join Date
    08-28-2014
    Location
    india
    MS-Off Ver
    2007
    Posts
    92

    Re: combine number of worksheets with text into one master sheet

    i am sorry you need to press ctrl shift Q to run the macro.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Required Macros for combine worksheets in to master with defined range
    By d.r.damo in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-21-2014, 08:12 AM
  2. [SOLVED] combine multi workbooks into one master workbook but I want to combine only sheet 3
    By Goodstart14 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-31-2013, 12:22 AM
  3. How to automatically combine data from multiple worksheets into a master worksheet
    By BeardedLuminary in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-28-2013, 10:57 AM
  4. Macro to combine multiple worksheets into a Master file
    By hazte22 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-15-2012, 04:28 AM
  5. [SOLVED] Listing text cells from multiple worksheets to master sheet
    By v007vanvuuren in forum Excel General
    Replies: 5
    Last Post: 11-07-2012, 09:37 AM

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