ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how to set password to protect worksheet under excel? (https://www.excelbanter.com/excel-programming/290696-how-set-password-protect-worksheet-under-excel.html)

shirley

how to set password to protect worksheet under excel?
 
i want to protect my worksheet with password after a new row has bee
added in. how do i go about doing it? i am unsure what object o
methods to use

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


Dave Peterson[_3_]

how to set password to protect worksheet under excel?
 
This is one of those things that you can solve by recording a macro:

I got this line:

ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True

xl didn't record the actual password. But I could look at help and see that I
need something like:

ActiveSheet.Protect DrawingObjects:=True, _
Contents:=True, Scenarios:=True, password:="hi"



"shirley <" wrote:

i want to protect my worksheet with password after a new row has been
added in. how do i go about doing it? i am unsure what object or
methods to use.

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


--

Dave Peterson



All times are GMT +1. The time now is 02:08 AM.

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