Previous in Forum: Missing Characters From a Commodore 64 Character Set   Next in Forum: Medical Instruments Tracking Software
Close
Close
Close
7 comments
Rate Comments: Nested
Anonymous Poster #1

File Expiration

02/25/2012 9:42 PM

Hi All,

using the date function in excel or word, is there a way to set an expiration date for a file so that after certain date the file become inactive.

Regard

kumaran

Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

Good Answers:

These comments received enough positive votes to make them "good answers".

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Guru
Technical Fields - Technical Writing - New Member Engineering Fields - Piping Design Engineering - New Member

Join Date: May 2009
Location: Richland, WA, USA
Posts: 21017
Good Answers: 795
#1

Re: file expiration

02/25/2012 9:46 PM

There might be a way to use macros to switch a file to read-only after a certain date (or maybe even to delete it). Why do you keep flogging this issue?

__________________
In vino veritas; in cervisia carmen; in aqua E. coli.
Reply
Anonymous Poster #2
#2

Re: file expiration

02/25/2012 10:43 PM

Yeah. Put a sticky note on your calendar saying "Delete file xxx on (Month)/(Day)/(Year)."

Reply Score 1 for Good Answer
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#3

Re: file expiration

02/25/2012 10:48 PM
__________________
All living things seek to control their own destiny....this is the purpose of life
Reply
Guru
United States - Member - Lifelong New Yorker Popular Science - Biology - Animal Science Technical Fields - Technical Writing - Technical Writer

Join Date: Mar 2008
Location: NY
Posts: 2313
Good Answers: 59
#4

Re: File Expiration

02/26/2012 8:11 AM

I've heard that certain programs, like SharePoint, can do this.

I'd just sort my folder ascending by date, check for what's old, and delete it.

Reply
Commentator

Join Date: Dec 2010
Posts: 61
Good Answers: 1
#5

Re: File Expiration

02/26/2012 11:02 PM

It depends on what you mean by inactive. Please define.

Reply
Guru
United Kingdom - Member - Hearts of Oak Popular Science - Paleontology - New Member Engineering Fields - Mechanical Engineering - New Member

Join Date: May 2005
Location: In the Garden
Posts: 3389
Good Answers: 75
#6

Re: File Expiration

02/27/2012 3:55 AM

Third time lucky??

__________________
Chaos always wins because it's better organised.
Reply
5
Associate

Join Date: Jul 2011
Posts: 34
Good Answers: 1
#7

Re: File Expiration

02/27/2012 8:39 AM

Hello,

The code below will prevent an Excel workbook from being opened beyond the date you choose (change 2/27/2012 to the date of your choice).

CAUTION - This is just a starting point, you will need to figure out a way to re-open the file beyond the date as it will lock you out as well - maybe a version without the code. Also, what you put in the "THEN" block may include code to inactivate any active content (controls e.t.c.) in your file.

Cheers.

Private Sub Workbook_Open()

If Now > CDate(#2/27/2012#) Then

MsgBox "File has expired and will now be closed"

ActiveWorkbook.Close savechanges:=False

Else

End If

End Sub

Reply Good Answer (Score 5)
Reply to Forum Thread 7 comments

Good Answers:

These comments received enough positive votes to make them "good answers".

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

Anonymous Poster (1); English Rose (1); SavvyExacta (1); seg (1); SolarEagle (1); Tornado (1); wsjackman (1)

Previous in Forum: Missing Characters From a Commodore 64 Character Set   Next in Forum: Medical Instruments Tracking Software

Advertisement