+ Reply to Thread
Results 1 to 2 of 2

User Form with Combox and ListBox

  1. #1
    Registered User
    Join Date
    10-28-2020
    Location
    Toronto, Canada
    MS-Off Ver
    2019
    Posts
    2

    User Form with Combox and ListBox

    Hello, I am farily new to VBA. Was wondering if there was a code in which if I selected a value from a combobox, then a value from a listbox, it would produce an output of "1" into a certain cell? My code explains a little into what I'm trying to achieve. Thank you



    Private Sub btnEnterAvailability_Click()

    Dim ws As Worksheet

    Set ws = ThisWorkbook.Worksheets("Availability")



    If (cboMembers.Value = "Member 1") And listTimes.Value = "5:00am" Then

    ws.Range("B3").Value = "Yes"

    End If

    End Sub

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,302

    Re: User Form with Combox and ListBox

    Administrative Note:

    Welcome to the forum.

    Unfortunately, this is a duplicate thread, and you are allowed only ONE thread per issue here.

    Please see Forum Rule #5 about thread duplication.

    I am closing this thread, but you may continue here in the original thread: link to be added hereAdministrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)

+ 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. User Form with Combox and ListBox
    By roddieeee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-28-2020, 04:55 AM
  2. Listbox or Combox help
    By Biplab1985 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-15-2016, 06:55 PM
  3. User Form ListBox - Find Records (ListBox Populating Issue)
    By LONeillSSC in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 07-20-2015, 12:06 PM
  4. User Form combox populate from hidden workbook
    By jprlimey in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-27-2014, 11:33 AM
  5. [SOLVED] How can I active a row from a listbox in a user form?
    By Magma310 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-07-2013, 03:42 PM
  6. Listbox Update on user form
    By Irish_Griffin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-15-2009, 02:41 PM
  7. Functional Listbox in User Form
    By warby23 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-24-2009, 05:17 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