+ Reply to Thread
Results 1 to 5 of 5

Clear Cell based on change of list value

  1. #1
    Registered User
    Join Date
    09-09-2021
    Location
    Stockholm, Sweden
    MS-Off Ver
    365 MSO 64 bits Excel version 1910
    Posts
    11

    Clear Cell based on change of list value

    I want to clear a cell when changing value from a drop-down list in another cell.

    Se attached example.

    Whenever I change player name in cell E8 (from whatever name to any other name) I want to clear the editable cell F8.

    Is this possible without VBA?
    If not, I also humbly appreciate suggestions on the code.

    thanks!ClearCell.xlsx

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,878

    Re: Clear Cell based on change of list value

    No, not possible without VBA. I'm moving this to the VBA section.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    09-09-2021
    Location
    Stockholm, Sweden
    MS-Off Ver
    365 MSO 64 bits Excel version 1910
    Posts
    11

    Re: Clear Cell based on change of list value

    Ok thanks.

    Anyone who knows the proper VBA code for the task?

    All help appreciated

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Try this !


    According to your attachment a worksheet event VBA procedure to paste only to Blad1 worksheet module :

    PHP Code: 
    Private Sub Worksheet_Change(ByVal Target As Range)
        If 
    Target.Address "$E$8" Then
            Application
    .EnableEvents False
            Target
    (12).ClearContents
            Application
    .EnableEvents True
        End 
    If
    End Sub 
    ► Do you like it ? ► So thanks to click on bottom left star icon « Add Reputation » !

  5. #5
    Registered User
    Join Date
    09-09-2021
    Location
    Stockholm, Sweden
    MS-Off Ver
    365 MSO 64 bits Excel version 1910
    Posts
    11

    Re: Clear Cell based on change of list value

    Works perfect, thank you!!

+ 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. [SOLVED] Change List Based On Value In Another Cell
    By ZooTV92 in forum Excel General
    Replies: 5
    Last Post: 10-05-2015, 04:31 PM
  2. Clear dependent list based on a cell value!
    By veray in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-01-2015, 06:54 AM
  3. Replies: 3
    Last Post: 08-16-2014, 09:55 AM
  4. Clear cell contents based on value selected in a dropdown list
    By dpleventhal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-01-2013, 04:45 PM
  5. Replies: 1
    Last Post: 06-21-2013, 04:05 AM
  6. Change cell from dropdown list and clear other cells in row
    By Dale Schultz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-25-2012, 09:30 AM
  7. Clear data on change of validate list
    By d0n in forum Excel General
    Replies: 2
    Last Post: 06-05-2009, 06:18 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