+ Reply to Thread
Results 1 to 2 of 2

Automatically delete column once the date in that column has expired

  1. #1
    Registered User
    Join Date
    07-30-2014
    Location
    South Africa
    MS-Off Ver
    2007
    Posts
    1

    Automatically delete column once the date in that column has expired

    Have have a excel spreadsheets with 2 columns. One with the employees name and one with the date that their warning expires. I would like the employees name to be automatically removed after the date expires. How do I do this.
    Last edited by Paul; 07-30-2014 at 12:06 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Automatically delete column once the date in that column has expired

    I presume the names are in Column A and the dates are in Column B on Sheet1 then, try the following macro:
    Please Login or Register  to view this content.
    copy this code to the ThisWorkbook Object and enable macros by default for this workbook. Then this code will run everytime the workbook is opened and will delete all expired rows.
    HTH!

+ 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. How do you automatically delete email domains in an Excel column?
    By sjeff in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-20-2013, 08:38 PM
  2. Excel spreadsheet to email automatically when date is about to expire
    By WarrenNeal in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-29-2013, 01:06 AM
  3. If hire date (column D) is greater than revision date (column F) then delete row
    By bruinsrme in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-14-2013, 07:25 PM
  4. Automatically enter date into a column and make that column read only
    By Mr Davo in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-24-2012, 07:58 PM
  5. Replies: 11
    Last Post: 06-05-2011, 11:30 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