AllowEditRange.ChangePassword Method
Changes the password for a range that can be edited on a protected worksheet.
Syntax
expression.ChangePassword(Password)
expression A variable that represents an AllowEditRange object.
Parameters
| Name | Required/Optional | Data Type | Description |
|---|---|---|---|
| Password | Required | String | The new password. |
Example
In this example, Microsoft Excel allows edits to range "A1:A4" on the active worksheet, notifies the user, changes the password for this specified range, and notifies the user of the change. The worksheet must be unprotected before running this code.
| Visual Basic for Applications |
|---|
|