urgent help required.

S

Smart Akhtar

Can I unprotect any sheet through vba if it is protected with
password.

Please help with code , I need some urgent help on this..

Pleae help me with vba code . sample , I doe's not want any xl addins
file.

Thanks in advance.
 
B

Barb Reinhardt

ActiveSheet.Protect Password:="myPassword", DrawingObjects:=True,
Contents:=True, Scenarios:=True 'Default settings for protection
ActiveSheet.Unprotect Password:="myPassword"
 
S

Smart Akhtar

    ActiveSheet.Protect Password:="myPassword", DrawingObjects:=True,
Contents:=True, Scenarios:=True 'Default settings for protection
    ActiveSheet.Unprotect Password:="myPassword"

--
HTH,
Barb Reinhardt








- Show quoted text -

if I forgot the password. then how I can unprotect the sheet ?
 

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

Top