ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   unlocking a project in VB(A) (https://www.excelbanter.com/excel-programming/272906-unlocking-project-vbulletin.html)

Arne[_2_]

unlocking a project in VB(A)
 
In a previous post, I asked a question about changing the
CodeName property of a worksheet. It appears that this can
be done via the vbProject property of the workbook.
However, the CodeName property can only be changed when
the project is not locked, but unfortunately it is.
Therefore my question is: is there a way to unlock the
project, providing of course that the password is known?

Abdul Salam

unlocking a project in VB(A)
 


If you know the password by doubleclicking the module it
will ask the password and you can unlock it..

Abdul Salam



-----Original Message-----
In a previous post, I asked a question about changing

the
CodeName property of a worksheet. It appears that this

can
be done via the vbProject property of the workbook.
However, the CodeName property can only be changed when
the project is not locked, but unfortunately it is.
Therefore my question is: is there a way to unlock the
project, providing of course that the password is known?
.


Hank Scorpio

unlocking a project in VB(A)
 
On Tue, 29 Jul 2003 00:35:50 -0700, "Arne"
wrote:

In a previous post, I asked a question about changing the
CodeName property of a worksheet. It appears that this can
be done via the vbProject property of the workbook.
However, the CodeName property can only be changed when
the project is not locked, but unfortunately it is.
Therefore my question is: is there a way to unlock the
project, providing of course that the password is known?


No; the project would be too vulnerable to brute force cracking if
there were. You may be able to kludge a solution using the SendKeys
method or statement but I don't recommend it; it'd be too flaky to use
operationally.

---------------------------------------------------------
Hank Scorpio
scorpionet who hates spam is at iprimus.com.au (You know what to do.)
* Please keep all replies in this Newsgroup. Thanks! *

Arne[_2_]

unlocking a project in VB(A)
 
yep, that's the manual way, but I want to unlock the
project (temporarily) by means of VBA, since I do not want
to hand out the password to the users of the workbook.

Leo Heuser[_2_]

unlocking a project in VB(A)
 
That's not possible.

--
Best Regards
Leo Heuser
MVP Excel

Followup to newsgroup only please.

"Arne" skrev i en meddelelse
...
yep, that's the manual way, but I want to unlock the
project (temporarily) by means of VBA, since I do not want
to hand out the password to the users of the workbook.





All times are GMT +1. The time now is 05:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com