+ Reply to Thread
Results 1 to 7 of 7

Merge/Consolidate Multiple Workbooks data into a Single Sheet

  1. #1
    Registered User
    Join Date
    07-14-2011
    Location
    plymouth
    MS-Off Ver
    Excel 2003
    Posts
    26

    Lightbulb Merge/Consolidate Multiple Workbooks data into a Single Sheet

    Hi All

    I want to create a Macro in the Master Workbook that opens Colins_TimeSheet, Copy the data from it and then close Colins_TimeSheet.

    I want it to copy the Date (Column B), Columns D to N plus rows associated with the date (if there is data to be copied)

    once copied, paste the data into the relevant columns in the Master Workbook, sheet named ‘Master'

    Also Column E, titled Operator in the Master Spreadsheet, I want the name of the name of the sheet from colins_TimeSheet, entered along with any data copied across

    I have found couple of Macros that sort of do what I want, but I am struggling to make them work, any help will be much appreciated
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Merge/Consolidate Multiple Workbooks data into a Single Sheet

    So both the master and the work codes tabs should be populated?

    If you make any changes to the timesheets and want to run the macro again, should the master file be cleared (except the header) and then fresh data input?
    Or should the data be copied to the next available row in the master file?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    07-14-2011
    Location
    plymouth
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Merge/Consolidate Multiple Workbooks data into a Single Sheet

    The Work Codes Tabs are just there as a referance for the user of the Time Sheet and so can be ignored

    The data is to be copied into the next available row in the master file.

    thanks

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Merge/Consolidate Multiple Workbooks data into a Single Sheet

    I just looked at your Timesheet again. How do you want the output to be shown from that data? It will be good if you upload a sample output file.

  5. #5
    Registered User
    Join Date
    07-14-2011
    Location
    plymouth
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Merge/Consolidate Multiple Workbooks data into a Single Sheet

    attached is an example of how i would like the data to be copied from the TimeSheet to the Master Sheet
    Attached Files Attached Files

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Merge/Consolidate Multiple Workbooks data into a Single Sheet

    Try this code. Copy it to the Master file. Ensure that the master file is not saved in the same folder as the other files.
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose Tools | Macro | Macros
    Select a macro in the list, and click the Run button

  7. #7
    Registered User
    Join Date
    07-14-2011
    Location
    plymouth
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Merge/Consolidate Multiple Workbooks data into a Single Sheet

    Works Perfect

    thank you

+ Reply to Thread

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