+ Reply to Thread
Results 1 to 4 of 4

Accessing an Excel Form procedure from a UserForm

  1. #1
    Registered User
    Join Date
    06-23-2009
    Location
    Boca Raton, FL
    MS-Off Ver
    Excel 2003
    Posts
    5

    Accessing an Excel Form procedure from a UserForm

    In my excel spreadsheet, I have a ListBox which I would like to populate based on values inputted in a UserForm I have made, but I can't figure out how to do this.

    To clarify, I have a sub that will add items to this Excel ListBox (Private Sub AddItemsToListBox). When the user selects a value from a UserForm I have created, I would like to call AddItemsToListBox so that the value that was selected will be added to the ListBox.

    I tried creating a sub in a regular module, and using Application.Run in my UserForm code, but obviously it won't recognize the ListBox as an object.

    Any help would be greatly appreciated!

    Thanks.

  2. #2
    Forum Contributor
    Join Date
    03-16-2009
    Location
    NC
    MS-Off Ver
    Office 2016
    Posts
    164

    Re: Accessing an Excel Form procedure from a UserForm

    Hello ExcelHelp...

    I hope I understand your question!
    Try this workbook and let me know if works!
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-23-2009
    Location
    Boca Raton, FL
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Accessing an Excel Form procedure from a UserForm

    Thanks very much for trying, but I don't think I explained myself very well.

    I want the list box to be in the Excel Spreadsheet, not in the userform. I attached an example that might clarify what I mean.

    I want to type something in to the text box and then hit "Add Item to List Box1" and have it add to the data in the listbox on Sheet1.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-23-2009
    Location
    Boca Raton, FL
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Accessing an Excel Form procedure from a UserForm

    If anyone knows if this is just not possible, that information would also be really helpful. I'm totally stuck.

+ 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