+ Reply to Thread
Results 1 to 3 of 3

Adding Items to List box from cell range but skipping items duplicated in another range

  1. #1
    Registered User
    Join Date
    09-10-2017
    Location
    Mansfield, UK
    MS-Off Ver
    2007
    Posts
    23

    Adding Items to List box from cell range but skipping items duplicated in another range

    Hi

    I'm new to this so please so sorry if this is a stupid question.

    I have a userform with 2 list boxes in with buttons that move items between the boxes.
    Driver List.PNG

    Items are added to the list box on the right from one cell range and items items are added to the left list box from a different range. However, when adding items to the list box on the left I want it to miss out any items that appear in both ranges. so far I have

    Private Sub UserForm_Initialize()


    Please Login or Register  to view this content.
    I tired using the removeitem function in the second for each loop but kept getting errors and I can't figure out how to use the listindex to remove items from the list either.

    Any help would be greatly appreciated.

    Cheers

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Adding Items to List box from cell range but skipping items duplicated in another rang

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 09-10-2017 at 06:12 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    09-10-2017
    Location
    Mansfield, UK
    MS-Off Ver
    2007
    Posts
    23

    Re: Adding Items to List box from cell range but skipping items duplicated in another rang

    that's great, thanks so much for your help . I ended up using a combination of my original and yours to avoid leaving blank lines in the list box. Works great now. Thanks again.

    Please Login or Register  to view this content.

+ 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. List which items are in a range and count them
    By t2true in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-07-2017, 07:13 PM
  2. [SOLVED] How to generate a list of duplicated items from a table
    By Banaticus in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-04-2017, 06:12 AM
  3. Help with finding items in a List and adding items not found
    By DawaiDost in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-29-2016, 10:56 AM
  4. Duplicated items in a list
    By WernerBatMan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-04-2013, 03:32 AM
  5. How can I add duplicated items in a list? Help!
    By Class316 in forum Excel General
    Replies: 3
    Last Post: 03-23-2006, 05:30 PM
  6. [SOLVED] List of items appeared in range
    By realspido in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-09-2006, 07:35 AM
  7. Replies: 1
    Last Post: 06-24-2005, 12:21 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