+ Reply to Thread
Results 1 to 3 of 3

Clearing list box on userform

  1. #1
    Forum Contributor
    Join Date
    01-18-2005
    Posts
    238

    Clearing list box on userform

    I am having trouble clearing a listbox on a userform


    The only event I am using is the click event.


    When someone clicks one of the choices it does the event associated with what they clicked. However, after they click, the cursor or hightlight remains on what was clicked, so in order to click it again, they have to click another entry, which causes another action, and then they can click back to the original one.

    i tried listbox1 = "" after the code, but to no avail.

    It just seemed to duplicate the action.


    Is there anyway to make it where nothing is highlighted or selected in the listbox?


    Thanks and I appreciate any help.


    Josh

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Josh,

    Here are macros for both types of ListBoxes.
    Please Login or Register  to view this content.
    Calling DeSelect_2 Macro:
    DeSelect_2 "ListBox1"

    Sincerely,
    Leith Ross

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    try

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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