+ Reply to Thread
Results 1 to 8 of 8

Populating userform word boxes based on listbox selection

  1. #1
    Registered User
    Join Date
    11-11-2014
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    4

    Populating userform word boxes based on listbox selection

    Hi

    I am new to VBA and am struggling a little.
    I have a workbook that is functioning as a database. I already have a userform for data entry that writes data to an 18 column spreadsheet. What I am stuck with is some kind of edit function. I have a listbox on a userform that is populated from one column of the spreadsheet as a dynamic range. I would like to be able to make a selection from the listbox, then populate the first userform with the corresponding data for the selectiono to allow this to be changed and then re-writen.

    Thanks

  2. #2
    Forum Contributor
    Join Date
    03-10-2013
    Location
    Budapest, Hungary
    MS-Off Ver
    Excel 2007
    Posts
    125

    Re: Populating userform word boxes based on listbox selection

    Easier to help if you send me your file is partially finished!

  3. #3
    Registered User
    Join Date
    11-11-2014
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    4

    Re: Populating userform word boxes based on listbox selection

    Hi

    Apologies, that is obvious now. Here is the file.
    Thanks
    T
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    03-10-2013
    Location
    Budapest, Hungary
    MS-Off Ver
    Excel 2007
    Posts
    125

    Re: Populating userform word boxes based on listbox selection

    It is now the lifeguards drowning case. I can not see woorsheets on the screen. Help me if you get air!

  5. #5
    Forum Contributor
    Join Date
    03-10-2013
    Location
    Budapest, Hungary
    MS-Off Ver
    Excel 2007
    Posts
    125

    Re: Populating userform word boxes based on listbox selection

    I think the main issue has been resolved.
    Looks like there are still problems to be solved in the file.
    After a few days I'll have time to deal with it.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-11-2014
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    4

    Re: Populating userform word boxes based on listbox selection

    Thank you very much, nice solution, do you think there is anyway of displaying the names in the list box and selecting one of them instead of a cell on the spreadsheet?

    Thanks again.

  7. #7
    Forum Contributor
    Join Date
    03-10-2013
    Location
    Budapest, Hungary
    MS-Off Ver
    Excel 2007
    Posts
    125

    Re: Populating userform word boxes based on listbox selection

    If the name of the person guaranteed only occurs once, then the answer is yes. Anyway the thing is ambiguous.

    I suggest the followin:

    It is possible to display all the rows in the WorkSheet("Datadb") and choose to edit the row on the basis of this.

    Then write back the modified row in the table in the WorkSheet("Datadb")

  8. #8
    Registered User
    Join Date
    11-11-2014
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    4

    Re: Populating userform word boxes based on listbox selection

    So if i understand your meaning display all information from Worksheet("datadb") in the listbox, be able to select and populate wordboxes and then write modified row back to worksheet. That's be great, any help would be appreciated. Thanks.

    I am trying to reduce access to data in datadb due to number of users inputting and editing data.

    Thanks for all your help.

+ 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. Populating data into listbox based on 3 combo box's using a userform
    By Louis Dean in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-28-2014, 06:39 AM
  2. [SOLVED] Need help with populating Listbox from another Listbox(selection); across userforms.
    By SoulPrisoner in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-28-2013, 12:54 PM
  3. [SOLVED] Pre populating a userform from excel based on combobox selection
    By michelle 1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-02-2013, 12:09 PM
  4. Populating a userform based on a combobox selection
    By blindzero678 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2010, 03:37 PM
  5. Populating a userform based on a listbox selection
    By hey1000 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 07-21-2010, 02:54 AM

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