+ Reply to Thread
Results 1 to 30 of 30

Automatically updating multiple sheets to a master sheet

  1. #1
    Registered User
    Join Date
    09-10-2010
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    15

    Automatically updating multiple sheets to a master sheet

    Hi

    I am trying to create a master budget sheet which gets automatically updated when data is inputted into individual project worksheets. I have found this code which is apparently meant to do it but I can't seem to adapt it to my workbook. I tried changing the ranges but it came up as an error.

    Please Login or Register  to view this content.
    I have attached my workbook. any help would be much appreciated
    Attached Files Attached Files
    Last edited by welshgirl89; 10-07-2010 at 05:45 AM. Reason: add code tags for newbie pm warning

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Automatically updating multiple sheets to a master sheet

    Why have several sheest. One sheet to contain all the data then ideally summarise using a PivotTable
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    09-10-2010
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Automatically updating multiple sheets to a master sheet

    It's just the way my boss wants it to be displayed as he hasn't much experience with excel. So i'd like it once information is inputted in project A for example it will automatically copy to the master sheet.

    Thanks

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Automatically updating multiple sheets to a master sheet

    Hi welshgirl89
    the sheet name was incorrect
    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  5. #5
    Registered User
    Join Date
    09-10-2010
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Automatically updating multiple sheets to a master sheet

    Pike thanks thats great.... only one problem is that when new data is added it doesnt go to the next new line in the master sheet. the data groups together via the project group. How would i change that? Thank you so much for your help!

  6. #6
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Automatically updating multiple sheets to a master sheet

    welshgirl89
    you could try changing
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    the 2 adds another row

  7. #7
    Registered User
    Join Date
    09-10-2010
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Automatically updating multiple sheets to a master sheet

    that just adds a new row inbetween the data of each project group. is there no way it can just add to the next free row in the master sheet?

    also, is there a macro or a shortcut to run the code when just on the excel spreadsheet so once the new data can be added a button just needs to be pressed to automatically run it? tried creating a macro to do it but it didn't work.

    thanks again!!

  8. #8
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Automatically updating multiple sheets to a master sheet

    welshgirl
    Not sure what this means
    Quote Originally Posted by welshgirl89 View Post
    Pike thanks thats great.... only one problem is that when new data is added it doesnt go to the next new line in the master sheet. the data groups together via the project group. How would i change that? Thank you so much for your help!

  9. #9
    Registered User
    Join Date
    09-10-2010
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Automatically updating multiple sheets to a master sheet

    Say for example I already have data in the master sheet from all worksheets. When i add new data to ProjectA worksheet and run the code, it copies it underneath the previous ProjectA data in the master. Same with project B, if new data is added in its worksheet, then it copies it directly underneath the last project B data in the master sheet. I just want any new data to go in the next available row. Hope this makes sense!!

  10. #10
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Automatically updating multiple sheets to a master sheet

    hi welshgirl89,
    I think it does that ?

  11. #11
    Registered User
    Join Date
    09-10-2010
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Automatically updating multiple sheets to a master sheet

    unfortunately it doesn't, it just seems to group them by the project sheet in the master sheet. When i entered new data in project A it didn't go to the bottom in the next available row.

  12. #12
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Automatically updating multiple sheets to a master sheet

    You don't need to activate the sheets. This code should copy all the data to the next empty row in the master sheet for each sheet.

    Please Login or Register  to view this content.

  13. #13
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Automatically updating multiple sheets to a master sheet

    I've added error handling & turned off calculation to speed up
    Please Login or Register  to view this content.

  14. #14
    Registered User
    Join Date
    09-10-2010
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Automatically updating multiple sheets to a master sheet

    its still not going to the next free row, its grouping them by their projects in the master sheet

  15. #15
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Automatically updating multiple sheets to a master sheet

    Your sheets need to be identical, one had an extra row
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    09-10-2010
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Automatically updating multiple sheets to a master sheet

    it's still doing the same! i think i am just going to have to accept it won't work! thank you for all your help!!

  17. #17
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Automatically updating multiple sheets to a master sheet

    welshgirl89
    can you attach your workbook with the added row?
    Because you want them group per worksheet?

  18. #18
    Registered User
    Join Date
    09-10-2010
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Automatically updating multiple sheets to a master sheet

    here is my attached worksheet... you can clearly see they are grouped together via projects. I want them in order of when i added a new data. so for example 7/10/10 item was the last one to be added so i want it to be in the last filled row in the master sheet.thanks
    Attached Files Attached Files

  19. #19
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Automatically updating multiple sheets to a master sheet

    Hi welshgirl89
    two things
    one get ride of sheet 5 which has no data and two change this line from
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  20. #20
    Registered User
    Join Date
    09-10-2010
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Automatically updating multiple sheets to a master sheet

    that is still grouping via projects in the master sheet :s

  21. #21
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Automatically updating multiple sheets to a master sheet

    Ok the code you first had updates the the master ingroups of the sheets
    You want to place the last entry you have made to the master last row.
    or be filtered in acending order by date?

  22. #22
    Registered User
    Join Date
    09-10-2010
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Automatically updating multiple sheets to a master sheet

    I want it to go to the master last row please!

  23. #23
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Automatically updating multiple sheets to a master sheet

    Hi welshgirl
    luck it a wet long weekend
    here is an idea i borrowed from Romperstomper
    Place this code in the "Project A" sheet module
    every time you leave the sheet it will update the "Master Budget" sheet if there have been new rows added
    Please Login or Register  to view this content.
    you can change and use it in sheets Project B and C ect....

  24. #24
    Registered User
    Join Date
    09-10-2010
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Automatically updating multiple sheets to a master sheet

    Hi Pike

    That doesn't really make any difference to my worksheet. It still groups them into projects. How would i got about the way of just ordering them via dates on the master sheet?

    thanks

  25. #25
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Automatically updating multiple sheets to a master sheet

    This works by date entered did you try it?
    Attached Files Attached Files

  26. #26
    Registered User
    Join Date
    09-10-2010
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Automatically updating multiple sheets to a master sheet

    That works great thank you!! Just what i wanted!

    Thank you for patience

  27. #27
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Automatically updating multiple sheets to a master sheet

    woo hoo
    okie dokie If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  28. #28
    Registered User
    Join Date
    09-10-2010
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Automatically updating multiple sheets to a master sheet

    One more question (sorry!)- i am adding more sheets and changed the names of the others (e.g project a, b c) and updated the code to go with it but its only projects a and b that seem to update now. is there anymore code i need to change other than the sheet names? thanks

  29. #29
    Registered User
    Join Date
    09-10-2010
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Automatically updating multiple sheets to a master sheet

    ignore my last post, i had a play around and it works great! thank you again

  30. #30
    Registered User
    Join Date
    03-07-2013
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Automatically updating multiple sheets to a master sheet

    I would like to continue the conversation -

    I have 12 tabs and want to create 1 summary tab -

    Anyone have any ideas? I would like to create a button on the first tab to auto populate new data to the summary tab as well.

    All the tabs look alike too
    Attached Files Attached Files

+ 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