+ Reply to Thread
Results 1 to 12 of 12

Update corresponding cells on master sheet when data entered to filtered sheet

  1. #1
    Registered User
    Join Date
    04-27-2011
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Update corresponding cells on master sheet when data entered to filtered sheet

    Hi I am new to VBA and have a limited understanding of it’s workings.
    I want filter results from a master sheet onto separate sheets (achieved).
    The results on the filtered sheets have data that needs to be added to the row. So if I updated the filtered sheet , row C cell 2, then the master sheets corresponding row in column E will update the same line of information.
    Does that makes sense?
    The filtered data changes often, each time the macro is run (due to other parts of the master sheet being changed). The data I entered on the filtered results needs to be saved on the master sheet and when the filtered results change column C on the filtered sheet need to correspond with the master. So blank if it’s column E cell is blank or show whatever data is already there (not too important that part)
    Any help would be much appreciated. I have tried a number of things though I think I would confuse things if I quoted what I have tried as I am not a very competent user. Thanks.
    Attached Files Attached Files
    Last edited by Sumatied; 04-28-2011 at 11:51 PM.

  2. #2
    Registered User
    Join Date
    04-27-2011
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Update corresponding cells on master sheet when data entered to filtered sheet

    Still stuck on this, anyone have a suggestion?

  3. #3
    Registered User
    Join Date
    04-27-2011
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Update corresponding cells on master sheet when data entered to filtered sheet

    Sorry to keep on with this, but I am still stuck. If this forum can't help can anyone suggest where I might get help on this? Thanks

  4. #4
    Registered User
    Join Date
    04-27-2011
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Update corresponding cells on master sheet when data entered to filtered sheet

    Well still searching for answer on this one. I haven't made great headway on my own though. Can anyone help?

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Update corresponding cells on master sheet when data entered to filtered sheet

    The solution would be a worksheet_change macro that applies to your other sheets. The macro would watch columns B:C on the filtered sheets and anytime a manual change is detected, the macro searches the original Master Sheet for the same name and puts the correction in.

    There is even a worksheet_change macro that you could put into the ThisWorkbook module that would then apply to all sheets.

    To do this correctly, your sample workbook needs to be EXACTLY what you're trying to do. I assume there are more filtered sheets, or no?

    Can you expand you sample to demonstrate your full workbook? Are the some sheets this would apply to and others NOT? Obviously this would not apply to the Master Sheet, but are there others to ignore, too? Or is there a common naming scheme for all the sheets to pay attention to?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Update corresponding cells on master sheet when data entered to filtered sheet

    As described above, put this macro into the ThisWorkbook module and it will watch every sheet except Master Sheet and attempt to transfer your manual changes back to that sheet.

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-27-2011
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Update corresponding cells on master sheet when data entered to filtered sheet

    Quote Originally Posted by JBeaucaire View Post
    As described above, put this macro into the ThisWorkbook module and it will watch every sheet except Master Sheet and attempt to transfer your manual changes back to that sheet.
    Thanks for that J I got this to work perfectly on my simplified version. I don't have a strong enough understanding to get it work on my more complex spread sheet.

    So I spent some time and built a better representation of my working spreadsheet. The fields in yellow represent field that need to be update to Master from filtered sheets into the correct row.

    The working sheet has over 300 entries and growing.

    How do I alter the code to so it matches filtered sheet's column A with Master Sheet's column K and post the entered data from columns E and F in the correct row in columns N and O on the Master Sheet.

    Thanks heaps for your help so far.
    Attached Files Attached Files

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Update corresponding cells on master sheet when data entered to filtered sheet

    This is how I would do that, this allows you to design a column-to-column map in the SELECT() section of the code. When a change is made to a cell in column E (column 5) on a group's sheet, that is translated back to column N on the Master Sheet.

    Please Login or Register  to view this content.

  9. #9
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Update corresponding cells on master sheet when data entered to filtered sheet

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  10. #10
    Registered User
    Join Date
    04-27-2011
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Update corresponding cells on master sheet when data entered to filtered sheet

    Quote Originally Posted by JBeaucaire View Post
    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.
    Thanks heaps, I think that solves most of my issues. One quick query before I set this as solved. In the code you start with
    Please Login or Register  to view this content.
    I was just wondering what that does and do I need to have anything in front of it like
    Please Login or Register  to view this content.
    Again, many thanks, your a champ

  11. #11
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Update corresponding cells on master sheet when data entered to filtered sheet

    It turns on "code checking". Basically makes errors stand out.

  12. #12
    Registered User
    Join Date
    04-27-2011
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Update corresponding cells on master sheet when data entered to filtered sheet

    Cheers mate.

    I have tried to set this as solved though I do not have the edit option on my first post. Can an admin do this?

+ 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