ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel VBA-Protect and unprotect sheet with BVA (https://www.excelbanter.com/excel-programming/297042-excel-vba-protect-unprotect-sheet-bva.html)

marfrk

Excel VBA-Protect and unprotect sheet with BVA
 
I can`t run a macro because the cells are blocked and the shee
protected. How do I unprotect and protect a sheet with BVA code tha
include a prestablished pasword.
Thanks in advance

--
Message posted from http://www.ExcelForum.com


Papou

Excel VBA-Protect and unprotect sheet with BVA
 
Sheets("Sheet1").UnProtect("YourPwd")
Sheets("Sheet1").Protect("YourPwd")
HTH
Regards
Pascal

"marfrk " a écrit dans le message de
news: ...
I can`t run a macro because the cells are blocked and the sheet
protected. How do I unprotect and protect a sheet with BVA code that
include a prestablished pasword.
Thanks in advance.


---
Message posted from
http://www.ExcelForum.com/





All times are GMT +1. The time now is 10:37 AM.

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