+ Reply to Thread
Results 1 to 13 of 13

Delete cell contents based on certain column, update continuously

  1. #1
    Registered User
    Join Date
    06-01-2015
    Location
    MI
    MS-Off Ver
    2010
    Posts
    9

    Delete cell contents based on certain column, update continuously

    I want to delete the contents of a cell in row x based on if the corresponding cell in the same row is "active" or "closed"
    I want this to update continuously so whenever I make a change, the contents will be deleted.
    Any ideas?

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Delete cell contents based on certain column, update continuously

    Your explination left out some details so you'll have to modify this code to suit your needs. I left comments in the code to help.

    Also, I'm guessing you only want it deleted if the status is "closed", but it's not clear to me.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-01-2015
    Location
    MI
    MS-Off Ver
    2010
    Posts
    9

    Re: Delete cell contents based on certain column, update continuously

    Sorry, I should have made it more clear.
    Col 6 contains 'closed' or 'active', and if it says 'closed' in a particular row, I want to clear or hide the contents of col 5, row x.

  4. #4
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Delete cell contents based on certain column, update continuously

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-01-2015
    Location
    MI
    MS-Off Ver
    2010
    Posts
    9

    Re: Delete cell contents based on certain column, update continuously

    I actually get an error, it says'object required' at the first if statement

  6. #6
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Delete cell contents based on certain column, update continuously

    That's what I get for typing free-hand. Replace that If line with:

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    06-01-2015
    Location
    MI
    MS-Off Ver
    2010
    Posts
    9

    Re: Delete cell contents based on certain column, update continuously

    I have that too. Im not sure why its giving me an error

  8. #8
    Registered User
    Join Date
    06-01-2015
    Location
    MI
    MS-Off Ver
    2010
    Posts
    9

    Re: Delete cell contents based on certain column, update continuously

    Actually I just needed to add the ByVal Target As Range. However, nothing is happening on my sheet.

  9. #9
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Delete cell contents based on certain column, update continuously

    Would need to see the sheet and the code you are using, or an example.

    The way the code works now, as soon as you type something into column 6, if that something is "closed", column 5 of that row gets cleared.

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

    Re: Delete cell contents based on certain column, update continuously

    Where did you place the code?

  11. #11
    Registered User
    Join Date
    06-01-2015
    Location
    MI
    MS-Off Ver
    2010
    Posts
    9

    Re: Delete cell contents based on certain column, update continuously

    I figured it out, I just had it in the wrong worksheet. Thank you

  12. #12
    Registered User
    Join Date
    06-01-2015
    Location
    MI
    MS-Off Ver
    2010
    Posts
    9

    Re: Delete cell contents based on certain column, update continuously

    Does anyone know if there is a quick way to refresh the sheet instead of going through and re-typing in things to make the changes?

  13. #13
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Delete cell contents based on certain column, update continuously

    Please Login or Register  to view this content.

+ 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. Delete Rows that contain matching cell contents in column to the contents in cell B1
    By sspatriots in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-23-2015, 05:39 PM
  2. [SOLVED] delete rows based on column contents (new)
    By wingfield65 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-16-2014, 09:00 PM
  3. [SOLVED] delete rows based on column contents
    By wingfield65 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-04-2014, 03:17 PM
  4. How do you continuously update time and date in an Excel cell?
    By engine99 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-20-2005, 11:06 PM
  5. [SOLVED] How do you continuously update time and date in an Excel cell?
    By engine99 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2005, 05:06 PM

Tags for this Thread

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