+ Reply to Thread
Results 1 to 2 of 2

Automatically Delete Cell contents after 100 days

  1. #1
    Registered User
    Join Date
    05-27-2018
    Location
    Los Angeles
    MS-Off Ver
    MS365 (Mac) Version 2021
    Posts
    32

    Automatically Delete Cell contents after 100 days

    Hi there,

    I create a magazine every month that uses an excel sheet to pull data from. Whenever there are new products introduced, we like to call them out, and I've set up the magazine to automatically highlight the individual item on the page if the word "New" is in Column I (Highlight) and call out the page if the word "New" is in Column H (Header Shield). Generally, when we call a product new, we continue calling it new for 3 issues, after that, it's hard to justify still calling it new. Here's the problem. Given the rest of what's involved in producing this magazine myself, and the sheer number of products in it, it's difficult to remember how long ago a specific item was introduced and when it's time to remove the callout. To that end, I was wondering if there's a way to start a clock on any cell in those two columns whenever the word "New" is put in (and only the word New, because there are other callouts that don't need to be timed, like "Top Seller" or "2x deals" etc…) and automatically clear the cell one the timer hits 100 days. Is this even possible, or is it a pipe dream

    Here is a small sample of the excel sheet I'm working with.
    Full Month item listing Sample.xlsm

    As a side note, I currently have code in the sheet that adjusts the font size of headers that I wouldn't want to stop using or mess up:
    Please Login or Register  to view this content.
    Thanks for all your help.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,103

    Re: Automatically Delete Cell contents after 100 days

    I had a look at you file and it does strange things when I enter "New" in columns H and I. Having said that, one approach you could try is to add the following code to your Worksheet_Change event:
    Please Login or Register  to view this content.
    This code will place today's date in the corresponding row in column AC when "New" is entered in column "H". Then you could use a Workbook_Open() event or Worksheet_Activate() event to check the dates in column AC and if they are more than 100 days old, the code can clear the appropriate cells.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

+ 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. Macro to delete cell contents based on other cell contents
    By SJCrawley in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2021, 02:39 AM
  2. [SOLVED] Delete contents of a cell if another has any contents
    By new guy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-09-2020, 02:25 PM
  3. [SOLVED] Delete contents of a cell in a given range if it matches contents of a specific cell
    By rcicconetti in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-13-2016, 06:46 AM
  4. 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
  5. [SOLVED] Macro Delete Contents in 23rd corresponding cell if the cell in range is a non-blank cell
    By murtaza.khan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-04-2014, 01:11 AM
  6. Run Macro Automatically When delete row , changes cell,delete column
    By elevisse in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2012, 07:42 AM
  7. Automatically delete cell contents if 1 cell deleted
    By BudParker in forum Excel General
    Replies: 2
    Last Post: 11-08-2009, 11:20 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