+ Reply to Thread
Results 1 to 6 of 6

master sheet updated itself with new added sheets

  1. #1
    Registered User
    Join Date
    10-14-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    52

    master sheet updated itself with new added sheets

    Dear Friends,

    Hello,


    I am very happy with this forum and now adding a new task

    I have attached a master sheet where I want that it updates column A and column B of its own whenever a new worksheet is added( column A contains Name of person and column B contains Fathers Name) i.e whenever the new worksheet is added the master sheets should get updated of its own like the old names should remain there and new names in column A and B should get added below the old ones. I hope I am able to explained every thing..........

    Manoj Sharma
    Attached Files Attached Files
    Last edited by greatairi; 11-21-2013 at 10:05 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: master sheet updated itself with new added sheets

    Maybe this little trick will help you.

    if you add a blank worksheet at the start and end of your data sheets, and call them Start and End, then when you enter your calcs, you could just enter =sum('start:End'!C12) or whatever your references are. this way, you can add or remove sheets as needed, and it will add across all the sheets you need it to, and keep the totals as the data sheets change. make sure your "Master" sheet is before the Start sheet though
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-14-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: master sheet updated itself with new added sheets

    well friend FDibbins

    am bit confused I want that the person name in column A & fathers name in column B should be updated but after putting this formula it is showing numerical number, can you please help me out.......thanks
    Last edited by greatairi; 11-21-2013 at 10:07 AM.

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: master sheet updated itself with new added sheets

    hi Manoj. VBA is not really my forte, so i did this with a little recording of removing duplicates.

    Please Login or Register  to view this content.
    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button

    if you want to run it automatically, i'm not sure if it would make your workbook slow. you could skip the step of creating a Module & double-click the Sheet1 (master sheet) on the left panel & paste this code inside:
    Please Login or Register  to view this content.
    the names are permanently in master sheet once you put a number in column A

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  5. #5
    Registered User
    Join Date
    10-14-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: master sheet updated itself with new added sheets

    thanks my friend Benishiryo- for your reply,

    This will be my first attempt with VBA so let me try and hope every thing goes well because you have explained it so well. So I try it and get back to you for any further help. Once again thank you so much for helping me. God Bless You.
    Last edited by JBeaucaire; 11-22-2013 at 01:04 AM. Reason: Removed whole post quote, please use the REPLY box below.

  6. #6
    Registered User
    Join Date
    10-14-2013
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: master sheet updated itself with new added sheets

    Thank you SIR,

    For your great help I was able to run it in a single attempt, you explained it so well. I have become a big fan. Thank You so much!!!

+ 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. Replies: 3
    Last Post: 09-17-2013, 12:57 PM
  2. Master sheet continually updated?
    By dlab85 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-16-2012, 01:04 PM
  3. Updated master sheet from inserted spreadsheet
    By mckennashere in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-04-2012, 04:46 PM
  4. Update worksheets automatically when Master Sheet is updated
    By ApothecaryFairy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-04-2008, 01:43 PM
  5. Same cell added to master summary sheet
    By Bruce Fry in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-22-2005, 10:06 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