Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
ditchy
 
Posts: n/a
Default macro to time limit workbook

Hello there, is there a way for a macro, or does someone have a macro
to time limit a workbook, say three to five days. Similar to a 30 day
trial limit.
all help appreciated
regards, Ditchy

  #2   Report Post  
Harald Staff
 
Posts: n/a
Default

Hi Ditchy

In its very simplest form (goes into the thisworkbook module):

Private Sub Workbook_Open()
If Date DateSerial(2005, 5, 1) Then
MsgBox "Trial period has expired", vbInformation
Me.Saved = True
Me.Close
End If
End Sub

What you have to do is find ways to
- ensure that macros are enabled by the user (usually done by making the
file worthless without macros),
- register and store the first date when the user tests the file,
- read time from the internet so that changing the system date won't help,
- copy protect the file and all parts of its content

HTH. Best wishes Harald



"ditchy" skrev i melding
oups.com...
Hello there, is there a way for a macro, or does someone have a macro
to time limit a workbook, say three to five days. Similar to a 30 day
trial limit.
all help appreciated
regards, Ditchy



  #3   Report Post  
ditchy
 
Posts: n/a
Default

Thank you Harald for the info,
another question if I may. How do I (make the file worthless without
macros) ?
This may be a better option for me
regards
Ditchy

  #4   Report Post  
Paul B
 
Posts: n/a
Default

Ditchy, have a look here for one way

http://www.danielklann.com/excel/for...be_enabled.htm

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"ditchy" wrote in message
oups.com...
Thank you Harald for the info,
another question if I may. How do I (make the file worthless without
macros) ?
This may be a better option for me
regards
Ditchy



  #5   Report Post  
ditchy
 
Posts: n/a
Default

thanks Paul, your help again is much appreciated.
regards Ditchy



  #6   Report Post  
Harald Staff
 
Posts: n/a
Default

That is a good, common way, yes. The general idea is to break something in
the Close macro that you fix in the Open macro -unless time is expired or it
isn't paid for or whatever. Breaking things like that is creative and fun to
program.

Note that these things aren't extremely safe, skilled excel users, like the
ones you find here, will have few problems breaking into your file. But for
the target audience "users" it's sufficient.

HTH. Best wishes Harald


"Paul B" skrev i melding
...
Ditchy, have a look here for one way

http://www.danielklann.com/excel/for...be_enabled.htm



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
Extract specific data into its own workbook via macro? Adrian B Excel Discussion (Misc queries) 2 February 24th 05 07:09 AM
Playing a macro from another workbook Jim Excel Discussion (Misc queries) 1 February 23rd 05 11:12 PM
Copying a workbook with custom toolbar assigned to a macro Matt W Excel Discussion (Misc queries) 1 February 4th 05 11:46 PM
workbook macro help ditchy Excel Discussion (Misc queries) 2 December 27th 04 05:48 AM
workbook macro help ditchy Excel Discussion (Misc queries) 1 December 26th 04 10:54 AM


All times are GMT +1. The time now is 06:29 PM.

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"