Results 1 to 14 of 14

Userform DropDown Filled based on Entry

Threaded View

  1. #1
    Registered User
    Join Date
    07-30-2021
    Location
    USA
    MS-Off Ver
    2016
    Posts
    8

    Unhappy Userform DropDown Filled based on Entry

    **SOLVED
    Answer in reply 12, Thank you again so much!!**



    materials userform.png

    Hi guys, new here.
    I've been figuring out excel and vba on my own for a minute but this has me completely stumped.
    I want it so that when I enter an value in the "AC#" text box and click the "show materials" button, it will load a list of up to 5 materials from a separate sheet via vlookup.
    I can't even get it to give me one item via this method let alone 5.

    Private Sub ShowM_Click()
    If WorksheetFunction.CountIf(Sheets("List").Range("A:A"), Me.AC.Value) = 0 Then
    MsgBox "This AC is not Added"
    Me.AC.Value = ""
    Exit Sub
    End If
    With Me
    Me.PN.Text = Application.VLookup(Me.AC.Text, Sheets("List").Range("a:C"), 2, 0)
    End With
    End Sub
    Is what i have tried most recently. I also tried one using Find but couldn't get it to work either.

    I've never posted to one of these so please correct me if there is anything that I am doing wrong.


    ** Worth noting that the pop up that scans for the value does work, if the value is not listed it will pop up. But if it is listed the error comes at the vlookup area **
    Attached Files Attached Files
    Last edited by JessCCG; 08-03-2021 at 05:36 PM. Reason: addtional information

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need help making a dropdown reference a table based on a previous entry
    By cange39 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-18-2019, 07:49 AM
  2. [SOLVED] Populate dropdown menu in userform based off cell value
    By Jamesraywebber85 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-15-2018, 10:10 AM
  3. [SOLVED] Auto data entry based on dropdown choices
    By dkatorza in forum Excel General
    Replies: 3
    Last Post: 08-03-2014, 10:20 AM
  4. Populating userform based on 3 dropdown variables
    By k06 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-06-2012, 04:52 PM
  5. Replies: 1
    Last Post: 06-21-2011, 11:46 AM
  6. Replies: 3
    Last Post: 02-24-2011, 01:48 AM
  7. Give Choices based upon Userform Entry
    By 00Able in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-29-2011, 06:52 PM

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