+ Reply to Thread
Results 1 to 5 of 5

Cleared text from a cell keeps coming back

  1. #1
    Registered User
    Join Date
    01-05-2022
    Location
    NYC
    MS-Off Ver
    2013
    Posts
    4

    Question Cleared text from a cell keeps coming back

    Hi,

    I couldn't seem to find anything related to the problem I am having. Apologies if this was posted and answered elsewhere.

    I wrote some simple code to allow multiple selections in a cell from a dropdown list, and changed the character return to a semicolon. It works fine. However, when users attempt to clear their initial selection or selections, the removed text seems to reappear. This will happen when they use backspace to clear data, however, using the delete key to remove unwanted values works. When I instruct people to use the delete key, some ask why and I can't answer their question. Is this normal Excel behavior and using the delete key vs backspace a best practice, or, is it more likely my code introduced this? Anyone ever come across this?

    Regards,
    Nick

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Cleared text from a cell keeps coming back

    Difficult to comment with any authority without seeing the workbook that contains the code in question. Please upload it.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,618

    Re: Cleared text from a cell keeps coming back

    You are probably using a VBA worksheet change event handler to monitor the cells. I suspect that sees a simple character delete as a change and expects to retain the existing entries … so it retrieves what's already there.

    Using the delete key leaves the cell empty and the code probably caters for that.

    Without seeing the code, and ideally a sample workbook, it's not possible to be definitive about what is happening.

    If you described a fault with your car to a mechanic over the phone, what do you think the chances are that s/he can tell you what the problem is?
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    01-05-2022
    Location
    NYC
    MS-Off Ver
    2013
    Posts
    4

    Re: Cleared text from a cell keeps coming back

    I can't, company won't allow but I suspect it is related to code vs difference between backspace vs delete. Thank you anyway.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,618

    Re: Cleared text from a cell keeps coming back

    Can you shere the code? If not ...


    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. Replies: 4
    Last Post: 12-26-2017, 02:29 PM
  2. Replies: 26
    Last Post: 07-08-2017, 02:33 AM
  3. Result coming back as text not a number.....maybe?
    By bob0613282 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-29-2017, 11:48 AM
  4. HELP! I have a VBA pop up window that keeps coming back
    By mat83400 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-07-2016, 06:14 AM
  5. VLOOKUP coming back as #N/A (some of the time)
    By Clanty in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 05-25-2016, 03:13 PM
  6. [SOLVED] Make vlookup reset back to Name or blank after invoice is saved and cleared
    By jfolson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-05-2013, 08:25 AM
  7. VLOOKUP Formula coming back with NA#
    By monza2 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-18-2012, 01:38 AM

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