+ Reply to Thread
Results 1 to 8 of 8

Automatically delete the same value in a cell when filled in other cell

  1. #1
    Forum Contributor
    Join Date
    02-12-2013
    Location
    Brussel
    MS-Off Ver
    Excel 2013
    Posts
    134

    Automatically delete the same value in a cell when filled in other cell

    Hi everybody!

    Can somebody please help me with the next problem?
    I'd like a code to automatically delete the value in column AK and its corespondent in AL, if the value in AK is filled in column C (see workbook attached!)

    Many thanks!
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,754

    Re: Automatically delete the same value in a cell when filled in other cell

    I am looking at your spreadsheet and not understanding your logic. Please tell us your logic for deleting values in AK and AL and/or copying AK value to C. It is not clear to me.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Automatically delete the same value in a cell when filled in other cell

    Maybe:

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    02-12-2013
    Location
    Brussel
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: Automatically delete the same value in a cell when filled in other cell

    Quote Originally Posted by alansidman View Post
    I am looking at your spreadsheet and not understanding your logic. Please tell us your logic for deleting values in AK and AL and/or copying AK value to C. It is not clear to me.
    Well,

    In column C there are ID registration numbers within a range of numbers that have to be filled in by some users. If any of them doesn't fill in, I have a module that finds the missing numbers within that range and display them in column AK. Manually, I fill in column AL the name of the person who has to do the job. When the users make the registration that has an ID in the missing numbers column (AK), I'd like to automatically delete that ID and the name of the person in AL.

    Not quite sure if I made myself clear

  5. #5
    Forum Contributor
    Join Date
    02-12-2013
    Location
    Brussel
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: Automatically delete the same value in a cell when filled in other cell

    Quote Originally Posted by JOHN H. DAVIS View Post
    Maybe:

    Please Login or Register  to view this content.
    Hi John!

    Thanks for your quick reply.
    Unfortunately the code doesn't do anything. No error, no nothing!
    I pasted this in ThisWorkbook
    Did I did something wrong?

    Of course I did. Should be pasted in Sheet1
    Now works great!
    Thank you so much!
    Last edited by boboivan; 03-06-2014 at 03:46 PM.

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Automatically delete the same value in a cell when filled in other cell

    Yes. It should go in the Sheet Change Event Module. Right click on the sheet tab, choose worksheet, left side choose change. Code goes there.

  7. #7
    Forum Contributor
    Join Date
    02-12-2013
    Location
    Brussel
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: Automatically delete the same value in a cell when filled in other cell

    Quote Originally Posted by JOHN H. DAVIS View Post
    Yes. It should go in the Sheet Change Event Module. Right click on the sheet tab, choose worksheet, left side choose change. Code goes there.
    I just realized that

    Thank you so much again.

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Automatically delete the same value in a cell when filled in other cell

    You're welcome. Glad to help out and thanks for the feedback.

+ 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] How to automatically add time once cell filled in?
    By Nero_slk in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-16-2013, 04:28 AM
  2. How can I have a macro automatically run when a certain cell is filled in?
    By thejayjetson in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-02-2012, 04:24 PM
  3. Replies: 1
    Last Post: 05-12-2010, 05:45 PM
  4. When the cell is filled with value, automatically update the value in other cell
    By hai_krk in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-20-2009, 10:01 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