Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
AR Voice
 
Posts: n/a
Default how do i set up an expiry date in an Excel worksheet

I would like to know if there is a way to set up an expiry date in an excel
worksheet that lets you know when it is approaching a specific date.
Currently using Excel 2002
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

You could put this in the ThisWorkbook code module:

Private Sub Workbook_Open()
Const dtEXPIRED As Date = #6/5/2005#
Select Case dtEXPIRED - Date
Case Is < 0
MsgBox "This workbook has expired."
Case 0
MsgBox "This workbook expires today."
Case Is < 30
MsgBox "This workbook expires in " & _
dtEXPIRED - Date & " days."
Case Else
'do nothing
End Select
End Sub

This doesn't actually cause any changes in the workbook, however.

If you're unfamiliar with macros, see

http://www.mvps.org/dmcritchie/excel/getstarted.htm


In article ,
"AR Voice" <AR wrote:

I would like to know if there is a way to set up an expiry date in an excel
worksheet that lets you know when it is approaching a specific date.
Currently using Excel 2002

  #3   Report Post  
Andy Wiggins
 
Posts: n/a
Default

Here's a formula that lets you know when a specific date is approaching:

=IF((NOW()+5)<DATE(2005,6,14),"OK","Approaching a critical date")

When you get to within the critical time period, the value in the cell
changes.

--
Andy Wiggins FCCA
www.BygSoftware.com
Excel, Access and VBA Consultancy
-

"AR Voice" <AR wrote in message
...
I would like to know if there is a way to set up an expiry date in an

excel
worksheet that lets you know when it is approaching a specific date.
Currently using Excel 2002



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
today's date in excel David Excel Discussion (Misc queries) 2 June 2nd 05 01:15 PM
Excel Query Wizard Date Format aldsv Excel Discussion (Misc queries) 1 May 31st 05 12:44 PM
How do I convert a number formated as a date to text in Excel? BrotherNov Excel Discussion (Misc queries) 5 March 2nd 05 03:51 PM
Excel formula with date constraints Warrior Pope Excel Discussion (Misc queries) 3 January 28th 05 03:08 PM
Converting a date in Excel 2002 to a Year/Quarter format Jim Excel Worksheet Functions 2 January 10th 05 07:49 PM


All times are GMT +1. The time now is 10:35 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"