+ Reply to Thread
Results 1 to 5 of 5

Clearing a mulit select lisbox in Excel 2010

  1. #1
    Registered User
    Join Date
    10-10-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    49

    Clearing a mulit select lisbox in Excel 2010

    Hi all,

    I have a multi select listbox in excel which allows users to select multiple items.

    I have created a command button which I need to run two macros.

    One I have created which works perfectly, however I cannot get one to work which clears the multi select listbox.

    I have placed initial code which allows for both to run.

    "Sub RunAllMacros()
    Procedure1
    Procedure2
    End Sub"

    Procedure one is my first macro which basically clears the document of all entries, but I need Procedure 2 to clear the multi select listbox.

    I have Googled this, and it looks as if changing the Listbox to a single select then back to a multi select is the way to go however the example codes dont work.

    Does anyone know how I can code this?

    Many thanks in advance!

    Many thanks,

    Andy.

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,177

    Re: Clearing a mulit select lisbox in Excel 2010

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-10-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    49

    Re: Clearing a mulit select lisbox in Excel 2010

    Hi,

    Sorry, this code does not work either?

  4. #4
    Registered User
    Join Date
    10-10-2013
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    49

    Re: Clearing a mulit select lisbox in Excel 2010

    This is what I am looking to do as it makes sense however I just cant seem to get it to work.

    The code has an issue with the "Me." function.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

    Re: Clearing a mulit select lisbox in Excel 2010

    Where is the listbox located?
    If posting code please use code tags, see here.

+ 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. Excel 2010 - Select Save as type: PDF
    By excelenergy in forum Excel General
    Replies: 2
    Last Post: 04-11-2014, 01:27 PM
  2. Clearing undefined variable [Excel 14/2010] (VBA Only)
    By lloydgodin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-17-2013, 10:30 AM
  3. Excel 2010 Select IE Dropdown
    By Jman12 in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 12-27-2012, 07:00 PM
  4. [SOLVED] InStr()/Select Case [Excel VBA 2010]
    By lloydgodin in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-09-2012, 12:59 PM
  5. select different worksheet - excel 2010
    By cikler in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-20-2012, 09:03 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