+ Reply to Thread
Results 1 to 6 of 6

Userform - Combobox Cell selection Name Range

  1. #1
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Userform - Combobox Cell selection Name Range

    Good day everyone,
    I am looking for help doing the following:

    I have 3 name range in a control sheet ("Control")

    Namerange Cat1, Cat2, Cat3. All of the name range are different. I am trying to cut down on my Userform that have each a userform with combobox selection.

    Frmcat1, frmcat2 frmcat3.

    I need to simplify my life. I need that if the user selects anything between F5:F20 to generate the userform and select range Cat1. If the user Select G5:G20 then to generate Cat2 and so on...

    So on userform Initialize look if the user is in Column F, is yes then Cat1. If user in Col. G then Cat2 and final if user is in Col H to have Cat3 generate in the combobox.

    How would I go and do this?

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Userform - Combobox Cell selection Name Range

    Perhaps.
    Please Login or Register  to view this content.
    Last edited by Norie; 03-31-2014 at 11:28 AM.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: Userform - Combobox Cell selection Name Range

    Genious...just had to change the Private Sub UserForm_Initialize()

    My god work way much better then having 10 million userform lol and I don't really like to use multi-pages therefore this way is perfect.

    Thank you so much Norie



    Excel Noub

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Userform - Combobox Cell selection Name Range

    What did you change UserForm_Initialize to?

  5. #5
    Forum Contributor
    Join Date
    03-29-2012
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    818

    Re: Userform - Combobox Cell selection Name Range

    To Private Sub UserForm_Initialize()

    Your code was missing the "Sub"

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Userform - Combobox Cell selection Name Range

    Oops!

+ 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. Userform Combobox to populate based on selection in another combobox
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2014, 03:34 PM
  2. [SOLVED] Make combobox list options dependant on selection in another combobox within a userform
    By Vladimir_Dobvchenko in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-23-2013, 05:30 AM
  3. [SOLVED] UserForm , ComboBox 2 , refer to selection in Combo Box 1
    By waihar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-08-2013, 01:40 AM
  4. Combobox selection to a different cell but connected to another name range
    By Fedi4 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-09-2013, 08:26 AM
  5. [SOLVED] Fill a cell via textbox on userform depending on combobox selection
    By Rhamilton2512 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-15-2012, 10:29 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