+ Reply to Thread
Results 1 to 5 of 5

Multiple Choice from List Box

  1. #1
    Registered User
    Join Date
    08-07-2008
    Location
    London
    Posts
    29

    Multiple Choice from List Box

    Hello

    I have a list box with various items in it. When an item in the list is selected, the content is transferred to the cell to the left of the column.

    Multiple items can be selected, and a list is built up in the cell beside it.

    This is all done using a macro.

    My question is, I have two list boxes on the same worksheet and the same thing happens with each list box. I need to specify that this function only occurs with one of the list boxes.

    The code is as follows:

    Please Login or Register  to view this content.
    Can you please help me with how to specify the cell range and not all cells?

    The required list box is K5-K500 and these choices are displayed in J5-J500.

    Thank you in advance.

    Alis
    Last edited by VBA Noob; 08-10-2008 at 10:07 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    can you attach an example workbook/ have you actually got listboxes or Data Validation lists?
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    08-07-2008
    Location
    London
    Posts
    29
    Please see the attached worksheet.

    When I select an item from K5, it is displayed in J5 (as desired) but this also happens with H5 and G5 (whereas in this cell I just want a normal validation list box in H5 and nothing to happen adjacent to it).

    Thank you again.

    Alis
    Attached Files Attached Files

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    There is no listbox on the sheet, you are using Data validation. You really should learn the basics before attempting VBA, if only to explain your self properly. Try this amended code which limits the action to Column K

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-07-2008
    Location
    London
    Posts
    29
    Thank you SO much!

    You are an angel!!

    Yes, you are right - I do need to learn the basics. I am an extreme beginner and am very new to macros etc.

    I can't thank you enough.

+ 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