AshikHusein
Registered User.
- Local time
- Today, 10:44
- Joined
- Feb 7, 2003
- Messages
- 147
Hello,
I am trying to protect a worksheet from being modified.
If it is opened by certain users (I am getting the systems username) it should allow editing. For others using the workbook, it should protect the workbook from any modifications.
I am using the following VBA code but it does nothing:
ActiveWorkbook.Protect Password:="xxxxxxx"
I would like to request help in understanding what I am doing wrong here.
Thanking you in advance.
I am trying to protect a worksheet from being modified.
If it is opened by certain users (I am getting the systems username) it should allow editing. For others using the workbook, it should protect the workbook from any modifications.
I am using the following VBA code but it does nothing:
ActiveWorkbook.Protect Password:="xxxxxxx"
I would like to request help in understanding what I am doing wrong here.
Thanking you in advance.