+ Reply to Thread
Results 1 to 6 of 6

is it possible to edit items of a listbox in excel VBA

  1. #1
    Registered User
    Join Date
    05-20-2011
    Location
    CA
    MS-Off Ver
    Excel 2003
    Posts
    1

    Thumbs down is it possible to edit items of a listbox in excel VBA

    I have a userform, on this userform, there is a listbox with some items using additem method. Is there any way to edit the items of the listbox directly?

    What I want is click an item of a listbox and edit this item directly within the listbox?

    Thanks much!

  2. #2
    Forum Contributor
    Join Date
    05-09-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    315

    Re: is it possible to edit items of a listbox in excel VBA

    Not that I'm aware of. You'd need to amend the source and refresh the listbox.

  3. #3
    Forum Contributor
    Join Date
    05-09-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    315

    Re: is it possible to edit items of a listbox in excel VBA

    Maggie

    See the attached workbook. It's based on this post:

    http://www.excelforum.com/excel-prog...ox-in-vba.html

    Dion
    Attached Files Attached Files

  4. #4
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: is it possible to edit items of a listbox in excel VBA

    Use additem or removeitem only if it concerns only 1 item.

    Otherwise you best use .list
    You can populate a listbox/combobox in 1 go using List & array:

    Please Login or Register  to view this content.
    You can change a value in a listbo/combobox also using .list

    Please Login or Register  to view this content.
    if the combobox/listbox contains a multidimensional array

    Please Login or Register  to view this content.



  5. #5
    Registered User
    Join Date
    12-24-2012
    Location
    ghaziabad
    MS-Off Ver
    2010 excel
    Posts
    19

    Re: is it possible to edit items of a listbox in excel VBA

    how to use ur idea for multi column listbox for editing?

  6. #6
    Registered User
    Join Date
    07-01-2015
    Location
    cebu
    MS-Off Ver
    2013
    Posts
    1

    Re: is it possible to edit items of a listbox in excel VBA

    Same question. Can't fing the correct way

+ 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