Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am creating a program to be distributed to other users via cd. is there anyway to have the program terminate after a certain time so that the person can not go to another employer and use the program?
Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Look at the OnTime method in help , or see Chip's page at
http://www.cpearson.com/excel/ontime.htm -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "bruce forster" wrote in message ... I am creating a program to be distributed to other users via cd. is there anyway to have the program terminate after a certain time so that the person can not go to another employer and use the program?? Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this
Sub Auto_Open() If Now() "25/04/2004" Then ThisWorkbook.Close savechanges:=False End If End Su -- Message posted from http://www.ExcelForum.com |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
for certain time I am assuming that you mean days
A know it can be done via date for a demonstration file and put it in the Auto_Open and/or Close function I think if you use the DateDiff(interval, date1, date2[, firstdayofweek[, firstweekofyear]]) What you do is check if the difference bewteen the two dates has expired and run what you want to happen. However, if the person knows this all they have to do is reset the date on their computer to get around this. If you want the program to close after a number of minutues try searching for "splash screen" as that displays a userfrom for a few seconds. "bruce forster" wrote in message ... I am creating a program to be distributed to other users via cd. is there anyway to have the program terminate after a certain time so that the person can not go to another employer and use the program?? Thanks |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sorry mis-read it.
You can put various snares in the code, but none are reliable as the Excel security model is very weak, and easily circumvented. The only safe way is to build a VB application that you can compile as an executable or a DLL and secure that. -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Bob Phillips" wrote in message ... Look at the OnTime method in help , or see Chip's page at http://www.cpearson.com/excel/ontime.htm -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "bruce forster" wrote in message ... I am creating a program to be distributed to other users via cd. is there anyway to have the program terminate after a certain time so that the person can not go to another employer and use the program?? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
terminate a form | Excel Discussion (Misc queries) | |||
Macros terminate early | Excel Programming | |||
How to terminate a condition (IF) at its first occurance? | Excel Programming | |||
How can you wait for the SHELL command to terminate ? | Excel Programming | |||
Can't terminate the excel instance from VB | Excel Programming |