Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default Prevent file from working

Hello. Is there a relatively fool-proof way of preventing code within a
file from working after a specific date?
Basically, like a licensing expiration. After the initial period is over, I
want the file to stop working...but in such a way that a somewhat savvy
programmer could not go in and, for example, remove a line in the code that
prevents the macro from firing.

I was thinking an open_event that checks the date, and prevents the file
from even being open? I don't know...I'm grasping here. Any ideas?
Thanks!!


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Prevent file from working

You cannot lock out a savvy user. Macros can be disabled and locked VB
projects can be gotten into.

--
Jim
"Steph" wrote in message
...
| Hello. Is there a relatively fool-proof way of preventing code within a
| file from working after a specific date?
| Basically, like a licensing expiration. After the initial period is over,
I
| want the file to stop working...but in such a way that a somewhat savvy
| programmer could not go in and, for example, remove a line in the code
that
| prevents the macro from firing.
|
| I was thinking an open_event that checks the date, and prevents the file
| from even being open? I don't know...I'm grasping here. Any ideas?
| Thanks!!
|
|


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default Prevent file from working

Any suggestions for the "best" way? Maybe to lock out the average or
relatively savvy user? I sort of figured there was no foll-proof way...but
what's the most sophisticated way?

"Jim Rech" wrote in message
...
You cannot lock out a savvy user. Macros can be disabled and locked VB
projects can be gotten into.

--
Jim
"Steph" wrote in message
...
| Hello. Is there a relatively fool-proof way of preventing code within a
| file from working after a specific date?
| Basically, like a licensing expiration. After the initial period is

over,
I
| want the file to stop working...but in such a way that a somewhat savvy
| programmer could not go in and, for example, remove a line in the code
that
| prevents the macro from firing.
|
| I was thinking an open_event that checks the date, and prevents the file
| from even being open? I don't know...I'm grasping here. Any ideas?
| Thanks!!
|
|




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default Prevent file from working

How about this - In an open even macro, if the date the code is run the
date of expiration, then delete a critical line of code from the procedure,
and then delete the open event macro. So basically this renders the code
useless, and I will know the line of ode that was removed. Possible?

"Jim Rech" wrote in message
...
You cannot lock out a savvy user. Macros can be disabled and locked VB
projects can be gotten into.

--
Jim
"Steph" wrote in message
...
| Hello. Is there a relatively fool-proof way of preventing code within a
| file from working after a specific date?
| Basically, like a licensing expiration. After the initial period is

over,
I
| want the file to stop working...but in such a way that a somewhat savvy
| programmer could not go in and, for example, remove a line in the code
that
| prevents the macro from firing.
|
| I was thinking an open_event that checks the date, and prevents the file
| from even being open? I don't know...I'm grasping here. Any ideas?
| Thanks!!
|
|




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Prevent file from working

User disables code. Any code based solution then fails.

--
Regards,
Tom Ogilvy

"Steph" wrote in message
...
How about this - In an open even macro, if the date the code is run the
date of expiration, then delete a critical line of code from the

procedure,
and then delete the open event macro. So basically this renders the code
useless, and I will know the line of ode that was removed. Possible?

"Jim Rech" wrote in message
...
You cannot lock out a savvy user. Macros can be disabled and locked VB
projects can be gotten into.

--
Jim
"Steph" wrote in message
...
| Hello. Is there a relatively fool-proof way of preventing code within

a
| file from working after a specific date?
| Basically, like a licensing expiration. After the initial period is

over,
I
| want the file to stop working...but in such a way that a somewhat

savvy
| programmer could not go in and, for example, remove a line in the code
that
| prevents the macro from firing.
|
| I was thinking an open_event that checks the date, and prevents the

file
| from even being open? I don't know...I'm grasping here. Any ideas?
| Thanks!!
|
|








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default Prevent file from working

Damn! Code can edit/remove code, right? So in theory for the relatively
unknowing user, something like this would work...

"Tom Ogilvy" wrote in message
...
User disables code. Any code based solution then fails.

--
Regards,
Tom Ogilvy

"Steph" wrote in message
...
How about this - In an open even macro, if the date the code is run

the
date of expiration, then delete a critical line of code from the

procedure,
and then delete the open event macro. So basically this renders the

code
useless, and I will know the line of ode that was removed. Possible?

"Jim Rech" wrote in message
...
You cannot lock out a savvy user. Macros can be disabled and locked

VB
projects can be gotten into.

--
Jim
"Steph" wrote in message
...
| Hello. Is there a relatively fool-proof way of preventing code

within
a
| file from working after a specific date?
| Basically, like a licensing expiration. After the initial period is

over,
I
| want the file to stop working...but in such a way that a somewhat

savvy
| programmer could not go in and, for example, remove a line in the

code
that
| prevents the macro from firing.
|
| I was thinking an open_event that checks the date, and prevents the

file
| from even being open? I don't know...I'm grasping here. Any ideas?
| Thanks!!
|
|








  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Prevent file from working

You might just close the workbook from the Workbook Open event if it's
expired. And password protect the VB project. That's easier than trying to
modify your own code. Still if macros are disabled the workbook will open
just fine.

--
Jim
"Steph" wrote in message
...
| How about this - In an open even macro, if the date the code is run the
| date of expiration, then delete a critical line of code from the
procedure,
| and then delete the open event macro. So basically this renders the code
| useless, and I will know the line of ode that was removed. Possible?
|
| "Jim Rech" wrote in message
| ...
| You cannot lock out a savvy user. Macros can be disabled and locked VB
| projects can be gotten into.
|
| --
| Jim
| "Steph" wrote in message
| ...
| | Hello. Is there a relatively fool-proof way of preventing code within
a
| | file from working after a specific date?
| | Basically, like a licensing expiration. After the initial period is
| over,
| I
| | want the file to stop working...but in such a way that a somewhat
savvy
| | programmer could not go in and, for example, remove a line in the code
| that
| | prevents the macro from firing.
| |
| | I was thinking an open_event that checks the date, and prevents the
file
| | from even being open? I don't know...I'm grasping here. Any ideas?
| | Thanks!!
| |
| |
|
|
|
|


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
Confused here Prevent Saving File - but allow ONLY File SAVEAS Met JMay Excel Discussion (Misc queries) 2 June 17th 07 04:37 PM
how to prevent worksheet scroll bar to be bigger than working are. Worksheet AREA Excel Worksheet Functions 1 March 16th 05 06:19 PM
prevent file deletion Lizeth Excel Discussion (Misc queries) 1 February 23rd 05 09:47 PM
Prevent Particular File Name during Save ExcelMonkey[_167_] Excel Programming 1 September 28th 04 12:22 PM
Prevent File Copying Bufo Calvin Excel Programming 1 May 25th 04 07:51 PM


All times are GMT +1. The time now is 03:53 PM.

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

About Us

"It's about Microsoft Excel"