+ Reply to Thread
Results 1 to 10 of 10

Duplicates & Multi select Listbox Please help!

  1. #1
    Registered User
    Join Date
    11-22-2019
    Location
    Dubai, UAE
    MS-Off Ver
    2016
    Posts
    10

    Duplicates & Multi select Listbox Please help!

    I have attached my file and what i have done so far i am trying fo over 5 days to achieve Duplicates on the Textbox Handle if there is a Duplicate it doesnt add it on Multi sheet selection! and on Listbox Selection to Select more than 1 Section and to be seperated by a comma Please i need help and please explain to me how is it to be done so i can learn and thank you from the norrom of my Heart
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    11-22-2019
    Location
    Dubai, UAE
    MS-Off Ver
    2016
    Posts
    10

    Re: Duplicates & Multi select Listbox Please help!

    noone has replied and viewed over 70 times

  3. #3
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,309

    Re: Duplicates & Multi select Listbox Please help!

    Probably because it is impossible to understand what you are trying to achieve.
    I have read your requirement a dozen times, it is confused and disjointed.
    Try describing again with more clarity of thought.
    I have briefly looked at your code and now more confused.
    e.g. why have you labeled a listbox as a textbox, give an illustration what you want separated by commas.
    perhaps with more clarity we may be able to help.

  4. #4
    Registered User
    Join Date
    11-22-2019
    Location
    Dubai, UAE
    MS-Off Ver
    2016
    Posts
    10

    Re: Duplicates & Multi select Listbox Please help!

    Thanks for the your reply
    The listbox named TextBox3 has a list i want to be able to select more than 1 and to be seperated by Comma such as Art, Adventure in same cell multiselect.
    and on the Column H of everysheet i have i want if i insert a name lets says Mike it goes there if i try to Enter Mike on same column again i cant and says Duplicate found! is it achievable ? and thank you so much for trying to help me

  5. #5
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,309

    Re: Duplicates & Multi select Listbox Please help!

    Try the attached.
    TextBox3 is hidden by the multiselect listbox.
    The multiselect items are passed to TextBox3 to enable the 'save' loop to remain as before.
    Also MessageBox pop-up if duplicate 'handle' is entered.
    I have removed your 'hard-coded' listfills to a seperate tab containing them within their own tables.
    torachan.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-22-2019
    Location
    Dubai, UAE
    MS-Off Ver
    2016
    Posts
    10

    Re: Duplicates & Multi select Listbox Please help!

    Hi thank you for you effort i do appreciate it but when i downloaded the file and i opened it i tried to add information to selected sheet it says Set tbl = ws.ListObjects(ActiveSheet.ListObjects(1).Name) debug and cant figure it out :/

  7. #7
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,309

    Re: Duplicates & Multi select Listbox Please help!

    Hi
    I must have accidently deleted the line
    Please Login or Register  to view this content.
    when I was tidying up the code before submitting.
    the attached has this line re-instated and works OK at my end
    torachan.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    11-22-2019
    Location
    Dubai, UAE
    MS-Off Ver
    2016
    Posts
    10

    Re: Duplicates & Multi select Listbox Please help!

    Man i cant thank you enough for sorting my problems im really newbie at coding im trying to learn and you did some advanced stuff im trying to understand your code for the last hour lol its really hard and thank you for making this work for me now im looking at modules i hope i understand how u did it ty

  9. #9
    Registered User
    Join Date
    11-22-2019
    Location
    Dubai, UAE
    MS-Off Ver
    2016
    Posts
    10

    Re: Duplicates & Multi select Listbox Please help!

    Btw do you have any code to show in a list box my last 10-20 entries ? i was doing a code and it shows everything ina sheet i am at but it doesnt show my last entries :/

  10. #10
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,309

    Re: Duplicates & Multi select Listbox Please help!

    See the attached, there is a 'ListView' initially it has the last three entries of each State (3 x 8 (24 rows)).
    As you add to your listings the 'ListView' will remove the last (bottom) entry and place the latest entry at the top of the list.
    torachan.
    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)

Similar Threads

  1. Multi-Select Listbox Help!
    By gclode in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-05-2016, 11:14 AM
  2. [SOLVED] Unhide 2nd Listbox when condition is met in the 1st multi-select listbox
    By pjbassdc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-18-2015, 09:58 AM
  3. [SOLVED] ListBox Multi-Select - Help
    By KyrieInfinity in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-08-2013, 12:54 AM
  4. Multi-select listbox output.
    By leaning in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-20-2011, 02:06 PM
  5. Multi-Select ListBox
    By yawnzzzz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-17-2011, 08:55 AM
  6. Listbox Multi Select
    By MikeT in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-27-2006, 03:30 PM

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