Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Don Don is offline
external usenet poster
 
Posts: 487
Default How do I limit the period of use of my xls programs for trial use

This provision is necessary for potential purchasers of my programs in the
event of their non-purchase decision by the user.
  #2   Report Post  
Posted to microsoft.public.excel.programming
GB GB is offline
external usenet poster
 
Posts: 230
Default How do I limit the period of use of my xls programs for trial use

No cure all guarantee, but you can use the registry to store data that can
then be "decoded." You must also hide the code so that it is not
visible/editable. Again, not a cure all, as someone will most likely find a
way around it.

"Don" wrote:

This provision is necessary for potential purchasers of my programs in the
event of their non-purchase decision by the user.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I limit the period of use of my xls programs for trial use


Try this below, its not fool proof but you can set a date and if the
workbook is opened or closed on or after that date it will delete
itself!

However, deleting something on another persons computer is classed as
"virus activity" and should not be carried out without you stating your
intentions to your proposed buyer!

HTH

Simon

Sub Auto_Open()
Dim MyDate
MyDate = #10/04/2005#
If Date = MyDate Then
Call KillActive
End If
End Sub

Sub KillActive()
dim sName as String
On Error Resume Next
sName = ThisWorkbook.FullName
Application.DisplayAlerts = False
ThisWorkbook.ChangeFileAccess xlReadOnly
Kill sName
Application.DislayAlerts = True
ThisWorkbook.Close SaveChanges:=False
End Sub

Sub Auto_close()
Dim MyDate
MyDate = #10/04/2005#
If Date = MyDate Then
Call KillActive
End If
End Sub


--
Simon Lloyd
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.excelforum.com/member.php...fo&userid=6708
View this thread: http://www.excelforum.com/showthread...hreadid=472844

  #4   Report Post  
Posted to microsoft.public.excel.programming
GB GB is offline
external usenet poster
 
Posts: 230
Default How do I limit the period of use of my xls programs for trial

Yeah a little strong. Might be better just to exit the app. Still there's
the issue of identifying the date against which to compare.

"Simon Lloyd" wrote:


Try this below, its not fool proof but you can set a date and if the
workbook is opened or closed on or after that date it will delete
itself!

However, deleting something on another persons computer is classed as
"virus activity" and should not be carried out without you stating your
intentions to your proposed buyer!

HTH

Simon

Sub Auto_Open()
Dim MyDate
MyDate = #10/04/2005#
If Date = MyDate Then
Call KillActive
End If
End Sub

Sub KillActive()
dim sName as String
On Error Resume Next
sName = ThisWorkbook.FullName
Application.DisplayAlerts = False
ThisWorkbook.ChangeFileAccess xlReadOnly
Kill sName
Application.DislayAlerts = True
ThisWorkbook.Close SaveChanges:=False
End Sub

Sub Auto_close()
Dim MyDate
MyDate = #10/04/2005#
If Date = MyDate Then
Call KillActive
End If
End Sub


--
Simon Lloyd
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.excelforum.com/member.php...fo&userid=6708
View this thread: http://www.excelforum.com/showthread...hreadid=472844


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
Saving Excel documents during trial period iamdebt Excel Discussion (Misc queries) 2 May 13th 08 02:00 PM
How do I access trial version files after grace period ends? David Charts and Charting in Excel 0 October 31st 07 07:01 PM
Trial Period? Can A Macro Shut down a file after 10 days? wx4usa Excel Discussion (Misc queries) 3 July 24th 07 04:18 PM
Defining Trial Period of VBA Code ExcelMonkey[_40_] Excel Programming 1 January 29th 04 08:09 PM
How to establish a trial period? Nathan Gutman Excel Programming 1 December 4th 03 07:54 PM


All times are GMT +1. The time now is 05:51 AM.

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"