Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
automatically unprotect vba-project
Hi,
is it possible to unprotect a password-protected excel-addin by code or does the user needs to enter it allways manually? neither the unprotect method of the coressponding workbook object nor the password-parameter of the "open" function seems to do what I need :-( kind regards |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
automatically unprotect vba-project
It can be done, but it involves the use of SendKeys which isn't too stable. This is an example, but you may need to tune it With Application .SendKeys "%{F11}", True ' VBE .SendKeys "^r", True ' Set focus to Explorer .SendKeys "{TAB}", True ' Tab to locked project .SendKeys "~", True ' Enter .SendKeys "password" .SendKeys "~", True ' Enter End With -- HTH Bob "Berkan" wrote in message ... Hi, is it possible to unprotect a password-protected excel-addin by code or does the user needs to enter it allways manually? neither the unprotect method of the coressponding workbook object nor the password-parameter of the "open" function seems to do what I need :-( kind regards |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
protect / unprotect VBA project by macro | Excel Discussion (Misc queries) | |||
Can project unprotect self? | Excel Programming | |||
protect/unprotect a VBA Project | Excel Programming | |||
protect/unprotect a VBA Project | Excel Programming | |||
Protect\Unprotect VBA project | Excel Programming |