ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   un/protecting VBA project (https://www.excelbanter.com/excel-programming/302115-un-protecting-vba-project.html)

Claude

un/protecting VBA project
 
Hi all

Does anyone know whether it is possible to un/protect a
VBA project, e.g. something like:

ActiveWorkbook.VBProject.Protect Password:="X"
(doesn't work for excel97)

Thanks in advance!

Jan Karel Pieterse

un/protecting VBA project
 
Hi Claude,

Does anyone know whether it is possible to un/protect a
VBA project, e.g. something like:

ActiveWorkbook.VBProject.Protect Password:="X"
(doesn't work for excel97)


No, not possible, unless you use the (unreliable) SendKeys method.

Regards,

Jan Karel Pieterse
Excel MVP
www.jkp-ads.com


Tom Ogilvy

un/protecting VBA project
 
Sendkeys is the only way other than manually.

--
Regards,
Tom Ogilvy

"Claude" wrote in message
...
Hi all

Does anyone know whether it is possible to un/protect a
VBA project, e.g. something like:

ActiveWorkbook.VBProject.Protect Password:="X"
(doesn't work for excel97)

Thanks in advance!





All times are GMT +1. The time now is 07:25 PM.

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