ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   excel - macro code to open a protected sheet, enter passowrd, and then protect sheet (https://www.excelbanter.com/excel-programming/297002-excel-macro-code-open-protected-sheet-enter-passowrd-then-protect-sheet.html)

arunjoshi[_5_]

excel - macro code to open a protected sheet, enter passowrd, and then protect sheet
 
i want to open a protected sheet - where protection has been done usin
a passowrd. and then later protect the sheet again using a password

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


Frank Kabel

excel - macro code to open a protected sheet, enter passowrd, and then protect sheet
 
Hi
use something like
activesheet.unprotect password:="yourpassword"
'some code
activesheet.protect password:="yourpassword"

--
Regards
Frank Kabel
Frankfurt, Germany


i want to open a protected sheet - where protection has been done
using a passowrd. and then later protect the sheet again using a
password.


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



All times are GMT +1. The time now is 09:07 AM.

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