+ Reply to Thread
Results 1 to 5 of 5

Prevent VBA from duplicating dropdown list selections when entering manual text.

  1. #1
    Registered User
    Join Date
    07-29-2021
    Location
    London, England
    MS-Off Ver
    MS Office
    Posts
    13

    Prevent VBA from duplicating dropdown list selections when entering manual text.

    Hi everyone:

    I'm using a VBA code for a dropdown list with multiple options in Excel, but when I enter text manually in a cell that already contains one or more selected options, the code duplicates the previous selections and then adding the new text. For example, if I select "Option 1" and "Option 2" from the dropdown list, the cell displays "Option 1, Option 2". However, if I then type "text" in the same cell and click on another cell, the cell displays "Option 1, Option 2, Option 1, Option 2, text".

    I'd like to modify the code to prevent this behavior and maintaining the selections Option 1, Option 2 with the new text when the cell is edited manually. Here's the current code I'm using:
    Please Login or Register  to view this content.
    Can anyone help me modify this code to achieve the desired behavior? Thanks in advance for your help!
    Last edited by TommasoP11; 04-10-2023 at 06:05 AM.

  2. #2
    Forum Contributor
    Join Date
    11-20-2007
    Location
    Felixstowe, England
    MS-Off Ver
    Excel 2013, 2019
    Posts
    217

    Re: Prevent VBA from duplicating dropdown list selections when entering manual text.

    I can't see anything in the code area ... try again.

  3. #3
    Registered User
    Join Date
    07-29-2021
    Location
    London, England
    MS-Off Ver
    MS Office
    Posts
    13

    Re: Prevent VBA from duplicating dropdown list selections when entering manual text.

    Sorry, I have entered the code now

  4. #4
    Registered User
    Join Date
    07-29-2021
    Location
    London, England
    MS-Off Ver
    MS Office
    Posts
    13

    Re: Prevent VBA from duplicating dropdown list selections when entering manual text.

    Is there anyone who can help me with my previous post please?

  5. #5
    Registered User
    Join Date
    07-29-2021
    Location
    London, England
    MS-Off Ver
    MS Office
    Posts
    13

    Re: Prevent VBA from duplicating dropdown list selections when entering manual text.

    Hello everyone,

    I recently posted a question regarding a VBA code issue with dropdown lists in Excel that was causing duplicate selections when entering text manually. I haven't received any answers yet and wanted to let you know that, in accordance with the forum rules, I have posted the same question in another forum. Here's the link: https://forum.ozgrid.com/forum/index...g-manual-text/.

    I apologize for any inconvenience this may cause and I appreciate any help or suggestions you can provide.

    Thank you!
    Last edited by TommasoP11; 04-12-2023 at 08:16 AM.

+ 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. Zooming Dropdown List Selections
    By enagli in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-03-2014, 05:37 PM
  2. [SOLVED] Conditional Formatting of List based on selections from Dropdown list
    By FoxyPinkChick in forum Excel General
    Replies: 4
    Last Post: 05-31-2013, 03:32 AM
  3. Dropdown list selections
    By Hustad in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 10-23-2009, 03:18 PM
  4. Combining Dropdown list and manual entry
    By stmarsha52 in forum Excel General
    Replies: 1
    Last Post: 09-18-2009, 08:21 PM
  5. Preventing manual entry in dropdown list ... possible?
    By Maurice in forum Excel General
    Replies: 4
    Last Post: 03-21-2006, 03:00 PM

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