+ Reply to Thread
Results 1 to 3 of 3

How to number listbox items, enable a cmd button and move item lines?

  1. #1
    Registered User
    Join Date
    11-24-2011
    Location
    Home
    MS-Off Ver
    Excel 2007
    Posts
    20

    Question How to number listbox items, enable a cmd button and move item lines?

    Hi,

    I'm creating a userform and there are some things I'd like to do in order to improve it but I don't know how to.

    I would like first to number each listbox item (using ListBox1.ListCount I guess), so it would appear like this:

    Please Login or Register  to view this content.
    I'm also trying to be able to move lines within the listbox. The code as it is now only allows to move an item (not the item and its whole line). It would only moves the couple names, not its affiliated number. So if I were to move Mike + Tammy up of one line, they would now be couple #05 and Roger + Gabrielle would then be couple #06.

    Also I would like to enable the Delete button when an item in the listbox is selected.

    Thanks in advance for your help!
    Last edited by Kimberley; 11-30-2011 at 06:38 AM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: How to number listbox items, enable a cmd button and move item lines?

    Hi Kimberley
    No straight forward way you will have to use some arrays

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    11-24-2011
    Location
    Home
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: How to number listbox items, enable a cmd button and move item lines?

    Thanks pike!
    Last edited by Kimberley; 11-28-2011 at 11:01 AM.

+ 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