Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default How to make an Excell-sheet un-usable!

Hi,


I've made an Excel program and would like to have that after a certain date
is becomes totally un-usable for the users. I thaught of putting in te open
workbook for example a check with that specific date and close the workbook.
But if you do not enable the macros, it will be possible to get into the
code and remove this code.

Is there another and for sure better way to do this. Like erasing part of
the code, and that it cannot be traced easily?


thanks a lot in advance,

Yves





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default How to make an Excell-sheet un-usable!

Yves,

The only way to accomplish this is to make the workbook unusable
if macros are not enabled. To do this, you would hide necessary
worksheets with the save event. If macros aren't enabled those
sheets won't unhide and the workbook is useless without them.
If macros are enabled, the Workbook_Open code would unhide
them.

Please note that Excel is not in any way secure. Passwords for
worksheets and VBA project code can be cracked easily by
an experienced user.

There's a pretty good thread with lots of code, ideas, etc. he
http://makeashorterlink.com/?R48812F64
It'll also point out some of the insecurities of attempting this.

John



Yves Janssens wrote:

Hi,

I've made an Excel program and would like to have that after a certain date
is becomes totally un-usable for the users. I thaught of putting in te open
workbook for example a check with that specific date and close the workbook.
But if you do not enable the macros, it will be possible to get into the
code and remove this code.

Is there another and for sure better way to do this. Like erasing part of
the code, and that it cannot be traced easily?

thanks a lot in advance,

Yves


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default How to make an Excell-sheet un-usable!

Thanks a lot John for the good information


Yves


"John Wilson" wrote in message
...
Yves,

The only way to accomplish this is to make the workbook unusable
if macros are not enabled. To do this, you would hide necessary
worksheets with the save event. If macros aren't enabled those
sheets won't unhide and the workbook is useless without them.
If macros are enabled, the Workbook_Open code would unhide
them.

Please note that Excel is not in any way secure. Passwords for
worksheets and VBA project code can be cracked easily by
an experienced user.

There's a pretty good thread with lots of code, ideas, etc. he
http://makeashorterlink.com/?R48812F64
It'll also point out some of the insecurities of attempting this.

John



Yves Janssens wrote:

Hi,

I've made an Excel program and would like to have that after a certain

date
is becomes totally un-usable for the users. I thaught of putting in te

open
workbook for example a check with that specific date and close the

workbook.
But if you do not enable the macros, it will be possible to get into the
code and remove this code.

Is there another and for sure better way to do this. Like erasing part

of
the code, and that it cannot be traced easily?

thanks a lot in advance,

Yves




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to make an Excell-sheet un-usable!

Assuming your spreadsheet will be password protected with all cells
hidden......I always insert a column on the left, insert the formula
'=today()' then identify a cell which drives much of the information
and add the fomula =if('the cell with =today() in it''the date in
numbers you want the sheet to stop working',"")

i.e. if today's date is greater than the preset date for the sheet to
cease functioning then return blank data in the cell in which the
formula appears.



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

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
How to open MS Excell 2007 Sheet in MS Excell 2000??? Alek Luchnikov New Users to Excel 1 March 22nd 07 04:40 PM
how to make a checkbox usable for users to "check" it? Brit Excel Discussion (Misc queries) 3 November 11th 06 08:24 PM
make macros usable! make instructions in plain english !!!! Brainless_in_Boston Excel Worksheet Functions 0 March 2nd 06 03:27 PM
In EXCEL2000, How can I copy a file and make it usable in MS WORK TampaDog Excel Discussion (Misc queries) 1 September 15th 05 02:02 PM
insert query into excell sheet to update excell sheet and pivot table vbsolo Excel Discussion (Misc queries) 0 August 24th 05 12:41 PM


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