+ Reply to Thread
Results 1 to 6 of 6

Combobox in Userform to look up values in cells

  1. #1
    Forum Contributor
    Join Date
    02-12-2018
    Location
    Clearwater, FL
    MS-Off Ver
    MS 365
    Posts
    217

    Combobox in Userform to look up values in cells

    So I have a Userform named "TimeStamp" with a combobox2 that I would like to populate based on this criteria. If the user logged into the workstation is equal to Sheets("All Staff").Range("D:D") the pull the names in .Range("G:G") as the options in ComboBox2! Any help would be greatly appreciated and I have attached my sample book to show you what I am trying to do!
    Attached Files Attached Files

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,338

    Re: Combobox in Userform to look up values in cells

    This might help you.
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Forum Contributor
    Join Date
    02-12-2018
    Location
    Clearwater, FL
    MS-Off Ver
    MS 365
    Posts
    217

    Re: Combobox in Userform to look up values in cells

    So I am using the code you are using above with a small change:
    Please Login or Register  to view this content.
    Is there away we can change that as the computer name is the name of the supervisor (ie. Ray Webber), however as you can see, the list of supervisors in column D on the All Staff sheet has it formatted as Webber, Ray. What would I need to change for this to work? All of them are on winTerms (Server based machines) so it runs off the network and that is how our machines are identified. Thank you so much for your help!

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,338

    Re: Combobox in Userform to look up values in cells

    You can try this.
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    02-12-2018
    Location
    Clearwater, FL
    MS-Off Ver
    MS 365
    Posts
    217

    Re: Combobox in Userform to look up values in cells

    I tried this code however now it is not populating any combo boxes

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,338

    Re: Combobox in Userform to look up values in cells

    Try this and you'll see it works.
    Please Login or Register  to view this content.
    This shows that there's somthing wrong with your
    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)

Similar Threads

  1. ComboBox values source being changed based on another combobox selection in a UserForm
    By stephenanderson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-08-2016, 11:12 PM
  2. [SOLVED] Unique Values in Combobox in Userform
    By nKife in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-17-2015, 07:45 PM
  3. [SOLVED] UserForm ComboBox linked values
    By PDBartlett in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-08-2014, 09:53 AM
  4. [SOLVED] Userform combobox to populate RowSource for new values in combobox
    By Stratfordoaks in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 12-17-2013, 01:18 PM
  5. Userform: Unique Values to ComboBox
    By dinosaur1993 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 09-21-2013, 03:09 AM
  6. [SOLVED] Changed userform combobox to listbox, unable to get userform to retrieve datasheet values
    By dragonabsurdum in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-29-2013, 01:38 PM
  7. [SOLVED] Validating values in a userform combobox.
    By Aorusakwe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-08-2013, 11:52 AM

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