+ Reply to Thread
Results 1 to 5 of 5

Control Button

  1. #1
    Registered User
    Join Date
    01-18-2010
    Location
    Cleveland, OH
    MS-Off Ver
    Excel 2007
    Posts
    54

    Control Button

    I'm hoping this is an easy one for someone. I am trying to make a control button selection default to another control button's selection. See example spreadsheet. In the example, I'd like the selection of "State" on the first tab, Input 1, to automatically be the starting selection for the button on tab Input 2. So if I select Indiana on Input 1, I would like the button on Input 2 to default to Indiana. However, i would like the selection on Input 2 to still be able to be changed - I don't want it to statically default to the selection made on Input 1. I'm merely trying to give the list on Input 2 a starting place. Does anyone know how I can get this done?
    Attached Files Attached Files

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Control Button Question

    You can use just one list of states. Set the linked cell for both controls to the same cell. Each control will mirror the selection made in the other one.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    01-18-2010
    Location
    Cleveland, OH
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Control Button Question

    If I only use one list of states, that means that both selections will always be the same. I need to be able to have them stand independently of one another. For instance, I choose Indiana as the state on the first tab. I would like the second tab to default to Indiana, but I would like the user also to be able to choose another state on the second tab without changing the selection already made on the first tab.

    The selections will always be made in the same order - tab one first, then tab two. I'm trying to give the user a starting point for the selection to be made on the second tab as 95% of the time they will be the same. But because of that other 5% of the time, I need to be able to have the control on the second tab stand independently of the first one.

    Hope that clears it up a little more. Any ideas?

  4. #4
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Control Button

    Get rid of the controls and use Data Validations Lists in the selection cells on both sheets.
    Create a named range for the list of states and use this name as the list source for both validation lists.

    On Input Sheet1, copy this code to the sheet module. When a selection is made it will set Input2 sheet, cell B5 to the same value, but still allow the user to make a new selection without affecting Input1.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-18-2010
    Location
    Cleveland, OH
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Control Button

    Thanks Palmetto. I'll give it a shot. If the spreadsheet I'm working with were my creation, I wouldn't have the control buttons. But the one I inherited does, so I'm having to work with what I got. I appreciate your help.

+ 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