+ Reply to Thread
Results 1 to 7 of 7

Combo Box with Links (to names/cells)

  1. #1
    Forum Contributor NewYears1978's Avatar
    Join Date
    03-15-2010
    Location
    Forney, TX
    MS-Off Ver
    Excel 2016
    Posts
    962

    Combo Box with Links (to names/cells)

    I have been trying to do this all night..no luck.

    Trying to do without macros if possible...I have a Combo Box with a list, Day 30, Day 60, Day 90 etc. I want when you select one that it will go to a certain named cell on the same sheet.
    Any ideas?

  2. #2
    Forum Contributor NewYears1978's Avatar
    Join Date
    03-15-2010
    Location
    Forney, TX
    MS-Off Ver
    Excel 2016
    Posts
    962

    Re: Combo Box with Links (to names/cells)

    I was trying to do it with Combo box - linked cell. Where using if statements if the cell = a value then it would stick in the hyperlink for that name. But I couldn't make that work..

    If I HAVE to use macros I would..I just prefer not to. Thank in advance!

  3. #3
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Combo Box with Links (to names/cells)

    NewYears1978,

    Attached is an example workbook based on the criteria you described.

    There is an ActiveX ComboBox in cell B2, (I resized row 2 and column B so that it would fit).
    The combobox's linked cell is A2, so whatever is chosen from its list will appear in cell A2.
    The combobox's ListFillRange is J2:J3
    In column J are the names of the two named ranges I created as a test. They are Name1 and Name2 in cells J2 and J3 respectively.
    Cell A1 is this formula to get the workbook name:
    Please Login or Register  to view this content.
    Then in cell C2 is this formula to create the hyperlink to the chosen named range:
    Please Login or Register  to view this content.
    You'll notice that when you click on the hyperlink you go to the sheet of the named range and have its cell selected. Name1 goes to Sheet2!$A$1 and Name2 goes to Sheet3!$B$2. You can hide column A if you'd like, as it is really just a helper column. Is something like that what you're looking for?
    Attached Files Attached Files
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Contributor NewYears1978's Avatar
    Join Date
    03-15-2010
    Location
    Forney, TX
    MS-Off Ver
    Excel 2016
    Posts
    962

    Re: Combo Box with Links (to names/cells)

    Thanks! I will look at it and see if I can figure it out..really an excel newbie..using Macros and such is all new to me

    Is there a way to make it auto jump on selection? Not entirely necessary but will be nice if possible. I am trying to tweak you example to work..as it will do what I nee, if I can figure out how to implement it in my workbook :P
    Last edited by NewYears1978; 08-16-2012 at 04:23 PM.

  5. #5
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Combo Box with Links (to names/cells)

    NewYears1978,

    Quote Originally Posted by NewYears1978 View Post
    Is there a way to make it auto jump on selection?
    This can only be accomplished with VBA. I was avoiding it because you requested to not use VBA if possible (which is a good thing I think); however, if you want this functionality and are ok with the VBA code it will come with, I can provide that.

  6. #6
    Forum Contributor NewYears1978's Avatar
    Join Date
    03-15-2010
    Location
    Forney, TX
    MS-Off Ver
    Excel 2016
    Posts
    962

    Re: Combo Box with Links (to names/cells)

    I got it worked out, it is working perfect.

    One thing..in the name list (name1 name2) range...those show in the combo box as they appear in the list..however I would like them to appear with spaces.

    So - name1 would show as Name 1 in the box..is this possible? If not..no biggy it is working I have it as Day30, Day60...etc. Thanks!

  7. #7
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Combo Box with Links (to names/cells)

    NewYears1978,

    You can put the spaces in the list so that the list items in the combobox will have spaces. Then use the formula in C2 to remove the spaces:
    Please Login or Register  to view this content.

+ 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