un/protecting VBA project

C

Claude

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!
 
J

Jan Karel Pieterse

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top