Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 329
Default time sensitive file?

"JE McGimpsey" wrote in message ...
In article ,
"macropod" wrote:

Well, if the worksheets start out blank and the vba code populates them with
the data and functions, then disabling the macros
prevents the user getting access to either the data or the functions. Quite
simple, really.


What's to prevent the user from removing macro protection (again, with
the workbook closed, using extremely simple techniques), then opening
the file with macros disabled, examining the code, removing or modifying
the part(s) that check for expiry, saving the file, then opening it with
macros enabled to populate the data and functions?

That's simple too. Removing protection takes about 30 seconds. Finding
the expiry code may take a bit longer, but probably not very long.

I've done this many, many times for clients that have had employees who
created "expiring" workbooks, and who have since left the company or
forgotten the project password. In fairness, half the time one can
defeat the protection just by running a backup copy after setting the
computer's clock back to before the expiry date.

A further difficulty is preventing the user from saving a copy of the
workbook with all the data and formulae expunged from the worksheet(s)
(but yet saved somewhere safe) and everything locked up tight. It's
possible, certainly, but not without its tricky aspects.

One client of mine, in addition to project protection and vba population
of key formulae, and many, many, layers of checking hidden activation
codes, *and* almost continuous on-time macros running to detect removal
of worksheet and workbook protection, asked me to make a small
modification to the app. He sent me a copy of the app, and called 1/2
hour later to give me the activation key. He was flabbergasted when I
told him I didn't need it, that I'd already removed or bypassed
everything he'd done and made the modification.

Trying to make XL workbooks secure from the moderately curious is like
adding epicycles upon epicycles to circular orbits - adding layers of
protection may look better and better, but ultimately it's futile.

Yes, certainly the average user won't be bothered try to break the app,
but if one wants it truly "inoperable", one shouldn't be using XL.

A COM add-in or another compiled app is far more secure.


Yes, all these things are true, and they just go to show how the standard 'expiry' protections might be circumvented. That's not to
say the principle is unsound, and the OP was after advice on how it might be done. Of course, using Office Developer Edition makes
it pretty easy to turn vba code into a COM add-in (see http://support.microsoft.com/kb/306130/en-us). Getting the COM add-in to
un-register and delete itself might be a bit more work, though.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

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
HELP!!! TIME SENSITIVE Walt Excel Worksheet Functions 5 September 22nd 08 07:25 PM
Best way to copy time sensitive data to a column william Excel Worksheet Functions 0 May 4th 06 05:54 PM
Time Sensitive Formulas gregg Excel Discussion (Misc queries) 0 April 6th 06 03:45 AM
Time Sensitive - Stacked Cluster Columns tlarson475 Charts and Charting in Excel 1 February 23rd 06 03:00 PM
Launching Program with Time Sensitive Data Jerry Erbe Excel Discussion (Misc queries) 0 August 29th 05 09:50 PM


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