+ Reply to Thread
Results 1 to 5 of 5

Erase Value in Adjacent Cell

  1. #1
    Registered User
    Join Date
    11-06-2010
    Location
    Vegas
    MS-Off Ver
    Excel 2017
    Posts
    51

    Erase Value in Adjacent Cell

    Thank you for looking at my problem. This is actually a continuation of a previous post.

    Attached is a file with two worksheets that is part of a much larger spreadsheet for a charity event. Each of the worksheets contains a list of names. When you click on the "Data Entry" button on the Info worksheet, a userform will come up. Using that userform, when I erase a name on the "Info" worksheet using the "Delete" button, I would like to also erase that name on the other sheet (not delete the entire row).

    I was given the following code by sintek that works great:

    Please Login or Register  to view this content.
    The additional question is how do I also erase the value in the cell to the right of the name only on the "Info" worksheet (in the "Index" column)? I should have included that question in my previous post. I am a beginner and cannot come up with a solution. Thank you again.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    07-10-2017
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2013
    Posts
    430

    Re: Erase Value in Adjacent Cell

    I think this should do what you're asking for.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-06-2010
    Location
    Vegas
    MS-Off Ver
    Excel 2017
    Posts
    51

    Re: Erase Value in Adjacent Cell

    Excellent! Works great. Thank you for another learning experience.

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Erase Value in Adjacent Cell

    Hello Dan
    If you intend to deal with just the sheet "Inf" .. Why didn't you exclude the sheet after the line of loop directly in that way
    Please Login or Register  to view this content.
    I think this will save some time as the code will skip the lines of Find which may take some time with larger data
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  5. #5
    Valued Forum Contributor
    Join Date
    07-10-2017
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2013
    Posts
    430

    Re: Erase Value in Adjacent Cell

    Quote Originally Posted by YasserKhalil View Post
    Hello Dan
    If you intend to deal with just the sheet "Inf" .. Why didn't you exclude the sheet after the line of loop directly in that way
    Please Login or Register  to view this content.
    I think this will save some time as the code will skip the lines of Find which may take some time with larger data
    Hi Yasser,
    My understanding was that the code for finding/erasing the name was to be used on all sheets, and erasing the value beside the name was to be done on the info sheet only. That's why I structured it this way - otherwise yes, your method would save time.

+ 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] Erase space in a cell
    By Saturn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-28-2017, 10:57 AM
  2. [SOLVED] How to erase the name of a cell using macros?
    By luisfmb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-11-2014, 12:41 PM
  3. [SOLVED] button erase dont erase an image inserted on an image control
    By Nuno Neves in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-11-2014, 08:04 AM
  4. How to erase some words on a cell?
    By Gravity101 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-21-2013, 07:36 AM
  5. [SOLVED] Erase cell that are unprotect AND not in the first row.
    By Melisendk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-11-2013, 02:34 AM
  6. Vlookup in adjacent column & erase data
    By Varmark in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-22-2011, 11:47 PM
  7. [SOLVED] how to erase all spaces in text cell?
    By D in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-23-2006, 03:45 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