From: Mike H on
Hi,

I may be missing something here but why do you want to lock your project
using code, why not simply apply a password manually?

The reality i'm afraid is that even when locked a VB project password can be
removed without too much trouble by anyone with a mind to do so.
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"K" wrote:

> Hi all, I got macro in which I can Lock VBProject with SendKeys. But
> problem with SendKeys that they not work on every User's Computer and
> Users can see all the hard work which I put to create my macros. I
> tried to search for the sultion but I came across with the comments
> that its not available because of the security issues. Well i want to
> say that i don't want to Unlock or Cract the VBProject. I just want
> to Lock it Programmatically. If there is no sultion then its my
> message to Microsoft that they should at least put this function also
> that you can secure your Macros or VBProjects with programming so if
> any one who works very hard to create VB codes, someone else could not
> copy his work without his permission.
> .
>