+ Reply to Thread
Results 1 to 2 of 2

Please Assist with Combo/List Box selection search

  1. #1
    Registered User
    Join Date
    08-29-2007
    Posts
    2

    Please Assist with Combo/List Box selection search

    I have set up a user form with a combo box of dates (Worksheet 1 A1:Z1 transposed as source) and a list box of names (Named Range). Worksheet 1 has the dates of meetings acroos the top and the list of names in column A. I am working on a code that when the command button is pressed it will search worksheet 1 and locate the cell that intersects the date selected in the combo box and the name selected in the list box. As if this weren't difficult enough, the list box is multi select! The purpose of this form is to record attendees at meetings. Is there anyone out there who can please assist me!! The code below works to select the cell that matches the combo box selection, but this is as far as I can get. This is my first time using VBA and I am getting extremely frustrated.

  2. #2
    Registered User
    Join Date
    08-29-2007
    Posts
    2

    Here is the code that I have

    Private Sub CommandButton1_Click()
    Dim oValue As Object
    Dim sRange As String
    sRange = "A1:Z:1"
    With Worksheets("Sheet1").Range("a1:z1")
    Set oValue = _
    .Find(AMAttend.AM.Value, _
    LookIn:=xlValues)
    If Not oValue Is Nothing Then
    Range(oValue.Address).Select
    End If
    End With
    End Sub

+ 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