+ Reply to Thread
Results 1 to 3 of 3

Control One Variable from Multiple Locations.

  1. #1
    Registered User
    Join Date
    01-24-2015
    Location
    Andover, MA
    MS-Off Ver
    2013
    Posts
    4

    Question Control One Variable from Multiple Locations.

    Hi There,

    Let's say I have two drop down list boxes on two different worksheets "Worksheet 1" and "Worksheet 2". Each drop down list box can say "Project A" or "Project B".

    If a user is on "Worksheet 1", and they choose "Project A" in the list box, I want the list box on "Worksheet 2" to change to "Project A" as well.

    If a user is on "Worksheet 2", and they choose "Project A" in the list box, I want the list box on "Worksheet 1" to change to "Project A" as well.

    If a user is on "Worksheet 1", and they choose "Project B" in the list box, I want the list box on "Worksheet 2" to change to "Project B" as well.

    If a user is on "Worksheet 2", and they choose "Project B" in the list box, I want the list box on "Worksheet 1" to change to "Project B" as well.

    I would like the flexibility to have this work on additional worksheets (I'm illustrating the basic example, but in actuality I have 4 worksheets with 4 list boxes).

    Hopefully this makes sense - thanks!

    JF

  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,929

    Re: Control One Variable from Multiple Locations.

    Hi, welcome to the forum

    What you want cannot be done with regular formulas or drop downs

    A cell can contain either data or a formula. A drop down puts data into a cell, if you have a formula in that cell, the DD will over-write the formula with the selected data.

    As an alternative, you might try to use data validaton on sheet 2 so that it will only allow a user to select what is already selected on sheet 1. Note, that if you change what is in sheet 1, the DV on sheet 2 will not trigger until the user tries to change it. I dont think this will work on both sheets looking at each other, bt it will work on 1 sheet looking at the other

    Another option mighgt be to use conditional formatting to change 1 sheet ce3ll to turn red (for instance) ifr it does not contain teh same as the other sheet. This option can be done both ways
    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
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Control One Variable from Multiple Locations.

    The only way to implement multi-linked-sheet value reflection the way you're describing would be to employ VBA, a Worksheet_Change event macro imbedded in each worksheet watching the specific cells where you want this done and the VBA would actually transfer the changes from the activesheet to all the other sheets using the addresses you specify.

    If you're familiar with VBA at all, this would not be difficult. If you're not, this will seem much harder than it really is. VBA is a useful tool if you're not scared of macros active your projects. Not everyone is comfortable with it.
    _________________
    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!)

+ 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. Average formula for multiple locations
    By runner in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-30-2014, 03:22 PM
  2. Identify multiple locations more than X miles apart
    By sshot1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-18-2014, 01:51 AM
  3. How to insert multiple rows at once at different locations
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-28-2013, 02:46 PM
  4. Extracting data from variable locations, input to logfile
    By zakynthos in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-23-2011, 04:14 PM
  5. Save to multiple locations
    By flourboy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-04-2007, 04:08 PM

Tags for this Thread

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