+ Reply to Thread
Results 1 to 2 of 2

Need to auto-delete cells based on condition

  1. #1
    Registered User
    Join Date
    04-08-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    35

    Need to auto-delete cells based on condition

    I am a beginner here... FYI.

    I have a workbook (we'll call it wkbk 1) with names linked to an outside workbook (wkbk 2).

    In wkbk 1, I have individual data for each person named (information is listed as one name per row w/ that person's data in same row). If a name in wkbk 2 ever changes, then the names in wkbk 1 would also change, therefore I need the individual data to be deleted whenever a name changes. *Note, the name will never be blank, there will always be a name written.

    Any ideas for this beginner?

    You are much appreciated!

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Need to auto-delete cells based on condition

    I'd approach such task the following way:

    in wkbk 2, in sheet with names event handler for Worksheet_Change event.
    in this event handler: find what was previous value of changed name, locate this name in wkbk 1 in sheet with names, delete all info for that name, replace name with new one.

    As for the beginner - one of "canned advices" (contained also in http://www.excelforum.com/forum-rule...rum-rules.html ): Attach a sample workbook(s). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Best Regards,

    Kaper

+ 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. Using VBA to delete values based on a condition
    By KatjaL in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-14-2015, 09:50 AM
  2. Delete row based on a condition
    By Yobari in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2015, 06:52 AM
  3. Replies: 1
    Last Post: 05-26-2014, 01:31 PM
  4. Delete rows based on condition
    By elocin17 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-12-2012, 12:35 PM
  5. Delete a row based on condition
    By vijay2482 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-16-2009, 05:14 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