+ Reply to Thread
Results 1 to 5 of 5

Excel vba to copy data from multiple sheets to one master sheet

  1. #1
    Registered User
    Join Date
    12-31-2016
    Location
    Karachi
    MS-Off Ver
    2010
    Posts
    6

    Excel vba to copy data from multiple sheets to one master sheet

    HELLO
    I NEED AN EXCEL MACRO TO COPY DATA FROM MULTIPLE SHEETS TO ONE MASTER SHEET
    PLEASE NOTE THERE ARE MORE THAN 100 SHEETS WITH MORE THAN 100 COLUMNS
    I WANT TO MERGE ALL THE SHEETS BY NEW SHEET DATA ADDED TO THE ADJACENT COLUMNS WHENEVER I RUN MACRO
    IF THIS IS SOMEONE CAN ASSIST ME AT ASAP.

    tHANKS

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Excel vba to copy data from multiple sheets to one master sheet

    Add a new sheet named master as your first sheet, and try this
    VBA copies every column of every sheet into "Master" beginning with second sheet.

    Please Login or Register  to view this content.
    Last edited by kev_; 12-31-2016 at 11:52 AM.

  3. #3
    Registered User
    Join Date
    12-31-2016
    Location
    Karachi
    MS-Off Ver
    2010
    Posts
    6

    Re: Excel vba to copy data from multiple sheets to one master sheet

    Thanks for the reply
    it is giving only few columns of the first 3 sheets and all columns from the last sheet?

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Excel vba to copy data from multiple sheets to one master sheet

    I spotted a typo and immediately amended the code.(apologies if you used what I posted first)
    I spotted that:
    Please Login or Register  to view this content.
    was on the wrong line and moved it.

    Check that your code looks like this - it should work
    Please Login or Register  to view this content.
    If it is still giving issues (perhaps your data is a different shape to mine) I will amend how it decides where to copies to
    Last edited by kev_; 12-31-2016 at 02:01 PM.

  5. #5
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Excel vba to copy data from multiple sheets to one master sheet

    This uses a different method to work out where to paste the data and (unlike previous method) does not use row 1 to determine the last used column in sheet "Master"

    Happy New Year

    Please Login or Register  to view this content.

+ 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. [HELP] VBA code to copy filtered data from multiple excel sheets into one master sheet
    By daaniyal57 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2016, 01:44 PM
  2. [SOLVED] Automatically Copy Data from Multiple Sheets to a Master Sheet
    By Ryan_Brandt in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-10-2014, 06:45 AM
  3. Merging Data from Multiple excel sheets to a Master sheet
    By dilli34 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-19-2013, 12:26 AM
  4. Insert and Copy to Multiple Sheets from a Master Sheet
    By mja05d in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-21-2013, 11:52 AM
  5. [SOLVED] Copy Data From Master Sheet to Multiple Sheets
    By dmmr in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-06-2013, 11:28 AM
  6. [SOLVED] Macro to copy data from multiple sheets to one (new) master sheet
    By nhtodd in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-24-2012, 02:30 AM
  7. Replies: 1
    Last Post: 12-15-2009, 07:07 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