Results 1 to 6 of 6

Userform Load Questions

Threaded View

  1. #1
    Registered User
    Join Date
    12-12-2006
    Posts
    33

    Userform Load Questions

    Hello again,

    I am in the process of creating a userform which I would like to have populated once a User makes their selection.

    I have the form created and have some of the functionality working but I am having a problem understanding how I can populate the remaining Fields on the form using a lookup.

    The basic flow of the form should be as follows.

    User opens Excel file (form opens with no options)
    ....(currently I am autopopulating the form with the IP Column)

    User selects one of the 4 OptionButtons to determine what list will populate
    ListBox1
    Once ListBox1 is populated User will then select from that listbox and the rest of the form will be popluated with the corresponding data elements.

    My thoughts on how to do this were to initialize form
    Once the option has been chosen and the user clicks on the selection,
    a Macro to do a vlookup would fill the remaining fields.
    1. Is vlookup the correct choice for this process or is there a better method ?
    2. How would Vlookup pass the variables to the Form textbox when the Textbox does not know the position in the datasheet where the original variable was loaded from ? This is what is confusing me.

    TextBox1.Text = (vlookup(ListBox1.Value,A:I,2)) ???

    I have attached a sample of what I am trying to accomplish
    Thanks again for all your help, this is really a great learning process for me.
    Attached Files Attached Files

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