+ Reply to Thread
Results 1 to 3 of 3

Reset From Control List Box

  1. #1
    Registered User
    Join Date
    06-04-2014
    Posts
    61

    Reset From Control List Box

    Hello,

    I am trying to change some list boxes on my worksheet from Active X to Form due to some weird locking issue that no one seems to be able to solve. However, the code I was using to reset the list bo via command button does not seem to work anymore. here is the code I am using:

    Please Login or Register  to view this content.

    Does a form control list box not allow this type of reset?

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Reset From Control List Box

    You need to refer to Forms listboxes differently and to reset them you need to set the ListIndex to 0.

    For example this code, which goes in a standard module, resets a listbox named 'List Box 1' using a command button named 'Button2', both controls are Forms and are located on 'Sheet2'
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    06-04-2014
    Posts
    61

    Re: Reset From Control List Box

    That worked! Thanks so much!

+ 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. Macro for a form control button to reset scroll bars to a static column of numbers
    By urbphoto in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2014, 04:13 PM
  2. Replies: 0
    Last Post: 04-15-2013, 09:22 AM
  3. [SOLVED] How to reset checkboxes from control tool box?
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-23-2006, 12:00 AM
  4. Reset Checkboxes from Control Tool Box
    By Robert in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-22-2006, 12:40 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