Displays the Change Password dialog box and allows the user to change his password.
Syntax
object.PromptToChangePassword(bstrUsername, [bstrDomain])
Properties
The PromptToChangePassword method syntax has these parts:
Part |
Description |
object |
An object expression that evaluates to an object in the Applies To list. |
bstrUserName |
String. Name of the user (Windows user name). |
bstrDomain |
String. (Optional). The Windows domain name where the user account is located. For a local user account, omit or pass an empty string. |
Return Value
This method returns HRESULT. If the HRESULT is a value other than S_OK, VBA generates an error. You can handle this error using the On Error Statement You can find out more information about the error by using Err Object.