+ Reply to Thread
Results 1 to 4 of 4

How to use VBA so that a list box, not DataValidation pops up

Hybrid View

  1. #1
    Registered User
    Join Date
    02-20-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    10

    How to use VBA so that a list box, not DataValidation pops up

    Hi,

    I'm working with a simple database where I have set up Datavalidation. When a user selects a cell by double clicking the datavalidation list appears. I've read in other postings about using Listboxes if I want the font to be bigger and if I want the user to be able to select multiple items from the list and then have it appear in the cell that was double clicked.

    I can do this with comboboxes (see attached), but I can't seem to get the similar code to work with Listboxes instead. Any suggestions?

    Mark
    Attached Files Attached Files

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: How to use VBA so that a list box, not DataValidation pops up

    Hi Mark, try it (see attachment)
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-20-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: How to use VBA so that a list box, not DataValidation pops up

    Quote Originally Posted by nilem View Post
    Hi Mark, try it (see attachment)
    Thank you! That is so simple and elegant! Thank you! The only remaining problem that I have left is, how do I set it so when the user selects multiple items in the listbox there is no ; between them, just white space?

    I can't thank you enough!!!!!

    Mark
    Last edited by marksm33; 02-23-2013 at 01:13 PM.

  4. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: How to use VBA so that a list box, not DataValidation pops up

    Ok, see attachment
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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