+ Reply to Thread
Results 1 to 2 of 2

Is it possible to pre-select an item in a ListBox in a Userform?

  1. #1
    Registered User
    Join Date
    07-29-2013
    Location
    California, United States
    MS-Off Ver
    Excel 2010
    Posts
    49

    Is it possible to pre-select an item in a ListBox in a Userform?

    I want to create a condition where if there is only one item in a listbox, then that one item is selected. Is this possible?

    If ListBox1.ListCount = 1 Then

    ....Select that one item.

    End If

    Nevermind. I figured it out. How do I delete this post?
    Last edited by bananajelly; 08-07-2014 at 02:14 PM.

  2. #2
    Registered User
    Join Date
    07-29-2013
    Location
    California, United States
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Is it possible to pre-select an item in a ListBox in a Userform?

    Nevermind. I figured it out. How do I delete this post?

+ 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. Select one item from a listbox disables another listbox
    By EagleInsight in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-22-2014, 09:53 PM
  2. select a item in userform listbox to open a file
    By simeonmein in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-17-2013, 09:36 AM
  3. [SOLVED] Add Select All item to UserForm ListBox (created by Leth Ross)
    By skysurfer in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 06-28-2012, 04:29 AM
  4. [SOLVED] Can one use a Listbox on UserForm without allowing the user to select an item?
    By StevenM in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-26-2012, 05:44 PM
  5. Multi select Listbox Items selection based on other Listbox item selection.
    By srinivassathi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-20-2011, 05:53 AM

Tags for this Thread

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