Password property

Microsoft Visio Developer Reference

Password property

   Example   

Resets the document's password.

Version added

2002

Syntax

object.Password ([bStrExistingPassword])= strVal

object

Required. An expression that returns a Document object.

bStrExistingPassword

Optional Variant. The existing password.

strVal

String. The new password.

Remarks

You can also set a document's password in the Protect Document dialog box (in the Drawing Explorer, right-click the drawing name, and then click Protect Document). If there is an existing password, you must first remove it by entering it in the Unprotect Document dialog box (in the Drawing Explorer, right-click the drawing name, and then click Unprotect Document).