Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Workbook activation code

I have created a small but effective way to keep my catering business
costings under control. My employer would like to use this tool for
some or all other units. What I would like to do is to allocate
activation codes to the main workbook to act as licence, these ought to
be time related so to expire and render the program obsolete after 60
day trial or 1 year licence. The question is, can this be achieved
through some very smart vba coding? if so is there a kind soul who is
willing to help me? Many thanks in advance
Alex

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Workbook activation code

Generally it is not worth the effort to implement such attempts. Any code
based attempt is easily defeated by disabling macros, which the user has the
option to do.

You could put your code or critical code in an addin and this would provide
you much more control. You would design your workbook so the addin is
critical for its operation. In the addin you could implement code to check
the date and if it is past a certain date, have the code not perform the
necessary functions.


http://www.microsoft.com/officedev/i...htm#distribute
Distributing Microsoft Excel 97, Word 97, and PowerPoint 97 Solutions (March
3, 1997)

http://www.microsoft.com/exceldev/tips/addins.htm
Protecting the Code in an Add-in


http://msdn.microsoft.com/library/techart/XLCrAddns.htm
Creating Add-ins in Microsoft Excel 97

Here is another article or two you might find useful:
http://msdn.microsoft.com/library/ba...n_addins97.htm
http://msdn.microsoft.com/library/of...exceladdin.htm

You can start with this archive search of methods suggested. Reading these
should give you other words you can search on to find other suggestions.

http://groups.google.co.uk/groups?as...lson&lr=&hl=en

Ironically enough, you can search the same archive to get free code to break
any workbook or sheet protection (not file or VBA code passwords) passwords
you apply.

For File or VBA code, you would need to spend some money at
http://www.lostpassword.com Just to emphasize the vulnerability of any
protection you implement in Excel itself.

Protection is like a padlock. It keeps honest people honest.

--
Regards,
Tom Ogilvy


"alanford" wrote in message
oups.com...
I have created a small but effective way to keep my catering business
costings under control. My employer would like to use this tool for
some or all other units. What I would like to do is to allocate
activation codes to the main workbook to act as licence, these ought to
be time related so to expire and render the program obsolete after 60
day trial or 1 year licence. The question is, can this be achieved
through some very smart vba coding? if so is there a kind soul who is
willing to help me? Many thanks in advance
Alex



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Workbook activation code

Thank you I was somewhat hopeing that it was possible to add a access
code or a combobox which would appear after a time had lapsed and the
user would have to input a code which has to match that which is stored
somewhere either in the form of code somewhere or in a hidden
worksheet. Thanks anyway. Alex

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Workbook activation code

Sure its possible.

You would just use the workbook_Open event. to run the code that checks the
date and otherwise manages your protection scheme. See excel VBA help on
savesetting and getsetting if you want to write to and retrieve from the
registry ( a time or code or both)

see Chip Pearson's page on Events

http://www.cpearson.com/excel/events.htm

for information on how to use events.

It just isn't very effective.

--
Regards,
Tom Ogilvy

"alanford" wrote in message
ups.com...
Thank you I was somewhat hopeing that it was possible to add a access
code or a combobox which would appear after a time had lapsed and the
user would have to input a code which has to match that which is stored
somewhere either in the form of code somewhere or in a hidden
worksheet. Thanks anyway. Alex



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Workbook activation code

Hi Tom,
following on your suggestion I have managed to get the events correct
though I would like to ask you one more favour.

basically I have built some fairly intricate excels workbooks and I
would like to release them, I would though like to allow people to use
them for say 60 days and after that if they like my work and part with
a little cash they can have a code (this could be a alfanumeric series)
that would unblock the workbook. do you think this is possible? if so
how? thank you for your efforts.
Alan

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
activation key LewisT Excel Discussion (Misc queries) 2 March 24th 10 05:27 AM
Sheet activation CWillis Excel Discussion (Misc queries) 5 June 1st 06 09:50 PM
Workbook activation issue Petr Excel Programming 1 February 3rd 05 10:58 AM
UserForm Activation Doug[_9_] Excel Programming 6 January 14th 04 09:36 AM
Detecting workbook activation Jack Wolf Excel Programming 0 July 26th 03 01:10 AM


All times are GMT +1. The time now is 02:40 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"