+ Reply to Thread
Results 1 to 2 of 2

link edits in sub-list to the main list

  1. #1
    Registered User
    Join Date
    10-19-2006
    Posts
    3

    link edits in sub-list to the main list

    Any good ideas on how to do this? Here's what I've got:

    - I have one main list with all my data.
    - I have created sub-lists from the main list by filtering certain items from the main list and saving these sublists in a different worksheet (or sometimes a different file).
    - In the sub-lists I would like to be able to edit entries, and have those edits reflected back in the main list.

    Is this possible? (I know how to set it up so that changes in my main list are reflected in my sub-list, but that is not what I want, I want the reverse). Any thoughts? Thanks for your help.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Response

    I would suggest a macro linked to the Worksheet_Change event on the sub-list sheets. This would take the new value, search for a corresponding entry on the main sheet and make the appropriate change.

    For example if you ave the following in the first two columns on sheet1 (the main sheet)

    Entry 1 Value 1
    Entry 2 Value 2
    Entry 3 Value 3
    Entry 4 Value 4
    Entry 5 Value 5
    Entry 6 Value 6
    Entry 7 Value 7
    Entry 8 Value 8
    Entry 9 Value 9

    and have a sub list on sheet 2

    Entry 7 Value 7
    Entry 8 Value 8


    The following macro in the sheet 2 macro sheet...


    Private Sub Worksheet_Change(ByVal Target As Range)
    For Each Cell In Target
    If Cell.Column = 2 Then
    Sheets("Sheet1").Columns(1).Find(Cell.Offset(0, -1), , xlValues, xlWhole).Offset(0, 1) = Cell.Value

    End If
    Next Cell
    End Sub


    ....will cause any change to a value in the second column of sheet2 to be reflected into the second column of sheet 1
    Martin

+ 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