Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i have created various excell based programs for my employees to use, but i
want to have them only accessed for a period of time. is there show how a way i can add a a specific time frame so if the the spread sheet is accessed after the time expires (eg. 3 months) the spread sheet will not open cheers brett |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this code within the ThisWorkbook module:
Const expireDate As Date = #12/1/2008# Private Sub Workbook_Open() If Date expireDate Then MsgBox "This program has expired." ThisWorkbook.Close End If End Sub If you are worried about users modifying the expireDate constant, you can password protect the visual basic project so it cannot be modified. This code will only close the workbook if macros are enabled. If they are not enabled, users will not be able to execute any macros, but they can still have the workbook open. "brett" wrote: i have created various excell based programs for my employees to use, but i want to have them only accessed for a period of time. is there show how a way i can add a a specific time frame so if the the spread sheet is accessed after the time expires (eg. 3 months) the spread sheet will not open cheers brett |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
See Chip Pearson's site:
http://www.cpearson.com/excel/workbooktimebomb.aspx Mike F "brett" wrote in message ... i have created various excell based programs for my employees to use, but i want to have them only accessed for a period of time. is there show how a way i can add a a specific time frame so if the the spread sheet is accessed after the time expires (eg. 3 months) the spread sheet will not open cheers brett |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Time frame conversion | Excel Discussion (Misc queries) | |||
time frame restriction | Excel Programming | |||
Time Frame | Excel Discussion (Misc queries) | |||
data time frame | Excel Programming | |||
3 Time frame | Excel Worksheet Functions |