+ Reply to Thread
Results 1 to 3 of 3

Automatically delete cell contents if 1 cell deleted

Hybrid View

  1. #1
    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: Automatically delete cell contents if 1 cell deleted

    Hi,

    You'll need to resort to VBA and a macro. Assuming your Last Name column is say column B, and you want to delete the contents of say columns G & J on the same row as a Last Name deletion, then

    Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
    If Not Intersect (Target, Range("B:B") Is Nothing Then
    
    Range("G" & Activecell.Row ",J" & ActiveCell.Row).ClearContents
    
    End If
    
    Expand the instruction inside the If statement to include other columns.
    
    HTH
    
    End Sub
    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.

  2. #2
    Registered User
    Join Date
    10-06-2008
    Location
    Gulf of Mexico
    MS-Off Ver
    MS Office Pro 2003
    Posts
    16

    Re: Automatically delete cell contents if 1 cell deleted

    Thanks Richard, I think that will work![/SIZE]
    Last edited by shg; 11-08-2009 at 11:56 AM. Reason: Deleted spurious quote
    Bud Parker

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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