Unprotect Worksheet Password

March 4, 2009 by vba excel
Filed under: Excel Vba 
Sponsor

Excel Vba Question:

I have a microsoft xcel file that has been used as a template to create 700+ files which has the protection worksheet applied. I now what to add more excel formulas to this file and want to use a macro to do it. How can I enter the unprotect password automaticaly as part of the macro and then protect the sheet again before saving and closing?

Excel Vba Answer:

How to unprotect microsoft excel worksheet password, assuming the book is already open:
Dim Wsh as worksheet
set wsh= activeworkbook.Worksheets(1) ‘Eg: for 1 sheet of active book

wsh.unprotect “your_password”
‘… do what you have to do here
‘then reprotect with wsh.protect …..

(If you wish to unprotect a protected vba project, not the sheet, then it
is not possible through coding)

  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google
  • E-mail this story to a friend!
  • Live
  • MisterWong
  • Propeller
  • StumbleUpon
  • Technorati
  • TwitThis
  • YahooMyWeb
  • Print this article!

Rate This Tips:

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...


Incoming excel search terms

excel vba unprotect sheet,mss,finding unprotect password in excel,vba unprotect worksheet,,excel unprotect sheet,excel visual basic unprotect sheet,how to unprotect worksheet,microsoft excel vba unprotect multiple sheets,unprotect excel sheet vba,unprotect excel worksheet,unprotect sheet vba,unprotect worksheet vba,unprotection worksheets,vba code to unprotect excel sheet,vba excel unprotect sheet with password,vba unprotect sheet,0,active worksheet unprotect,enter unprotect sheet vba,excel add in to unprotect a worksheet,excel macro unprotect sheet,excel protect sheet macro,excel sheet unprotect password macro,excel unprotect columns,excel unprotect formula,excel unprotect sheet excel vba,excel unprotect sheet password vba,excel unprotect sheet remove,excel vba protect sheet,excel vba protect sheet password,excel vba unprotect password,excel vba unprotect reprotect,excel vba unprotect sheet password,excel worksheet vba unprotect password,excel wsh unprotect a worksheet,how do you unprotect a worksheet in excel if you do not know the password,how to get a password unprotect excel sheet,how to password protect and unprotect sheet in excel vba,how to protect sheet in vba,how to unprotect columns in protected excel sheet in vba,how to unprotect excel sheet with password,how to unprotect excel sheet with vba,how to unprotect the project microsoft excel,is there any way un uprotect an exc3el worksheet,macro containing unprotect password,macro to unprotect sheet,ph,protect and unprotect sheet in excel vba,protect sheet excel vba



Related Excel Tips

Comments

Have another excel answer or questions for this problem ?
Feel free to post it here..