+ Reply to Thread
Results 1 to 8 of 8

Naviate to Worksheet/Activate Userform based on Cell Value

  1. #1
    Forum Contributor
    Join Date
    01-16-2020
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    176

    Naviate to Worksheet/Activate Userform based on Cell Value

    I'm trying to create a friendly way for users to navigate through a workbook containing several worksheets.

    In the attached workbook, on the Navigation worksheet, I have a combo box that will put text into B17 (which will be hidden eventually). I want the "Go" button to direct the user to a worksheet or userform based on the text in B17. For example, if the user selects "Create a clothing profile for a new resident," I need the Go button to bring up the ClothingUserForm. If the user selects "View or update the clothing profile for an existing resident," then it should activate the Updates workbook.

    It's stumping me because I have friendly names and most solutions I can find rely on the text of the cell to match the name of a worksheet, and I also need this to activate a userform in addition to workbooks.

    I really appreciate any help with this!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,097

    Re: Naviate to Worksheet/Activate Userform based on Cell Value

    Here the list of actions you want to do.
    What about the third one ?


    Create a clothing profile for a new resident. => Launch USer form
    View or update the clothing profile for an existing resident. => Go to sheet Updates
    Query clothing profile data. => What to do ?
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Contributor
    Join Date
    01-16-2020
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    176

    Re: Naviate to Worksheet/Activate Userform based on Cell Value

    Whoops sorry! "Query clothing profile data" will activate a worksheet that I haven't created yet.
    Also, the list will grow. Except for "Create a clothing profile for a new resident," all of the other options will just need to activate a worksheet, so I can add that functionality later once I get a working framework.

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,097

    Re: Naviate to Worksheet/Activate Userform based on Cell Value

    See file attached, the Go button can be used later, just test and comment.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    01-16-2020
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    176

    Re: Naviate to Worksheet/Activate Userform based on Cell Value

    Works perfectly! Thank you, PCI! I was debating whether to just use the Combobox to immediately direct the user to the appropriate userform/worksheet, but I think it will confuse users who select the wrong item from the dropdown, hence why I want to tie the action to the Go button.

  6. #6
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,097

    Re: Naviate to Worksheet/Activate Userform based on Cell Value

    it will confuse users who select the wrong item from the dropdown
    Yes that makes sense
    Perhaps you could use a validation menu for B17

    See next code
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    01-16-2020
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    176

    Re: Naviate to Worksheet/Activate Userform based on Cell Value

    Yep, that does exactly what I want. Links the action to B17, which is based on the selection from the ComboBox. A very elegant solution! Thank you so much, PCI!

  8. #8
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,097

    Re: Naviate to Worksheet/Activate Userform based on Cell Value

    You're welcome and Thx again for the Rep.
    Enjoy Excel ...!

+ 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. [SOLVED] Find and activate cell via userform
    By GSTVBA in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-18-2017, 04:15 AM
  2. [SOLVED] Activate a Worksheet based on Variable
    By kamelkid2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-19-2014, 01:45 PM
  3. Using a Userform ComboBox to activate specific worksheet
    By Klemmdog in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2014, 03:02 PM
  4. [SOLVED] Activate a UserForm by Right Clicking a Cell
    By stupotk in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-30-2013, 11:51 AM
  5. Activate worksheet with UserForm CommandButton
    By Sal1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-14-2012, 06:55 PM
  6. Activate Userform When A Cell is Selected
    By SamuelT in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-17-2008, 10:51 AM
  7. Replies: 5
    Last Post: 06-05-2007, 10:06 AM

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