+ Reply to Thread
Results 1 to 7 of 7

VBA for a newbie help on consolidating sheets on 1 master sheet

  1. #1
    Registered User
    Join Date
    04-23-2014
    Location
    Johannesburg
    MS-Off Ver
    Excel 2010
    Posts
    16

    VBA for a newbie help on consolidating sheets on 1 master sheet

    hi guys,

    thanks for help firstly

    so I have a work sheet- this sheet has a few tabs on it- one being master and the others names of people, what I would like is for every time a person enters data into there name tab for it to automatically update or create a copy on the master sheet... what I don't want it to do is copy the first row which is the header..

    I'e attached an example, I would appreciate where I need to edit to apply it to a file that is already in use.

    thanks,

    gaby
    Attached Files Attached Files

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: VBA for a newbie help on consolidating sheets on 1 master sheet

    Try this code............
    Please Login or Register  to view this content.
    The records entered in all the tabs will automatically transferred to the master sheet, once the user input the value in col. I of a row which is additional notes. This way the incomplete records will not be copied to the master sheet.
    Find the attached sheet to see if this fits to your requirement.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    04-23-2014
    Location
    Johannesburg
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: VBA for a newbie help on consolidating sheets on 1 master sheet

    that is exactly what I need thank you I will just base it on another colnmn as I think most of the time that will be blank, I might base it on ID

    I don't know how to apply it to my new sheet, could you provide me step by step on how to add a script- like click visual basic then click here there.. sorry I am extremely new to this

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: VBA for a newbie help on consolidating sheets on 1 master sheet

    Please follow these steps.
    1) Open your workbook.
    2) Press Alt+F11 to open VBA editor.
    3) On the left hand side panel which list your workbook along with all your sheets names. Below the sheets names, you will find ThisWorkbook.
    Right click on ThisWorkbook --> View Code
    4) Then in the opened code window, paste the code given in post#2.
    5) Close the VBA editor.

    And you are done. Your code is ready to work.

    Hope this helps.

  5. #5
    Registered User
    Join Date
    04-23-2014
    Location
    Johannesburg
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: VBA for a newbie help on consolidating sheets on 1 master sheet

    it was working but as soon as I saved it I got the follow pop up
    Attached Images Attached Images

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: VBA for a newbie help on consolidating sheets on 1 master sheet

    @gabz1989

    You need to allow excel to use macro's.

    you file has the extension .xlsx (see #1)

    a macro enable file has the extension .xlsm (see #2)

    So you need to save the file as Excel workbook with macro's
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  7. #7
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: VBA for a newbie help on consolidating sheets on 1 master sheet

    That's my mistake. I didn't tell you that after applying the code in the workbook, you had to save your workbook as Excel Macro-Enabled Workbook. Follow these steps.

    1) File menu --> Save As --> From Save As drop down list --> Excel Macro-Enabled Workbook --> Save
    2) Once the file is saved as Excel Macro-Enabled Workbook, you will notice that the file has the extension .xlsm but not .xlsx

    Let me know if you need any further assistance.

+ 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. [SOLVED] Consolidating text from multiple sheets into master - can you help?
    By CFWA in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 01-09-2014, 02:05 AM
  2. Consolidating data from certain sheets in a master summary sheet
    By RoyLittle0 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-09-2013, 04:41 AM
  3. Replies: 2
    Last Post: 06-13-2012, 06:51 PM
  4. Replies: 1
    Last Post: 06-13-2012, 05:53 PM
  5. Consolidating data on muliple sheets to master
    By Dylan&Hayden in forum Excel General
    Replies: 1
    Last Post: 07-16-2008, 11:10 PM

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