+ Reply to Thread
Results 1 to 15 of 15

remove cell content based on another cells text

Hybrid View

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

    Re: remove cell content based on another cells text

    Maybe:

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Columns(15)) Is Nothing Then
        Cells(Target.Row, "L").ClearContents
    End If
    End Sub

  2. #2
    Registered User
    Join Date
    06-23-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    32

    Re: remove cell content based on another cells text

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

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Columns(15)) Is Nothing Then
        Cells(Target.Row, "L").ClearContents
    End If
    End Sub
    Hi John,

    I tried using the basis of your code you gave me the other week where another cells content removes another but for some reason this code is not working for these cells. I don't understand why it does not work :S I have been given another macro where you have to run it to remove but there would be room for error if employees do not run it as i was hoping it could be done automatically like the code from last week

+ 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] remove cell content based on another cells text
    By toneNFFC in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-13-2015, 08:02 AM
  2. Automatically copy cells content based on the content of another cell.
    By chrisbarlow1984 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-01-2014, 11:13 AM
  3. [SOLVED] Search text in cells, find matching text based on list, remove all but one entry
    By adam_mc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-30-2013, 12:50 PM
  4. [SOLVED] Display text based on content of 3 cells
    By smugglersblues in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 12-20-2012, 12:25 PM
  5. Replies: 5
    Last Post: 01-28-2011, 07:02 PM
  6. How to remove certain cells based on text
    By jkupps2415 in forum Excel General
    Replies: 2
    Last Post: 06-18-2010, 03:45 PM
  7. Changing the text on button based on cell content
    By a94andwi in forum Excel General
    Replies: 1
    Last Post: 06-11-2009, 12:58 PM

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