Using the word options dialog box change username
To set an administrator password, you must be logged into the computer as an administrator. Indiana University policy Security of Information Technology Resources IT requires that you normally refrain from running your Windows computer as an administrator.
For more, see What is the principle of least privilege? On some computers, the account will not be named "Administrator" because the owner or administrator either changed that name or added administrative accounts with different usernames. In either case, you will need to know which of the accounts in the list is the designated Administrator account.
Tips for staying safe online At IU, why do I need to know the administrator account on my computer? How can I have my IU-networked computer scanned for security vulnerabilities? I need help with a computing problem. Please note that you must be affiliated with Indiana University to receive support. All fields are required. Email address Please provide your IU email address. Please enter your question or describe your problem. I have a comment for the Knowledge Base.
Fill out this form to submit your comment to the IU Knowledge Base. If you are affiliated with Indiana University and need help with a computing problem, please use the I need help with a computing problem section above, or contact your campus Support Center.
My comment concerns this document. This can be useful if you want to prompt the user with a built-in dialog box and return the settings. For example, the following macro instruction displays the User Information tab from the Options dialog box Tools menu and then returns and displays the user name. The following example uses the UserName property for the Application object to display the user name for the application without displaying the User Information dialog box.
If the user name is changed in the previous example, the change is not set in the dialog box. Use the Execute method to execute the settings in a dialog box without displaying the dialog box. The following example displays the User Information dialog box, and if the name is not an empty string, the settings are set in the dialog box by using the Execute method.
The following code example changes the user name through the UserName property of the Application object, and then it displays the User Information dialog box to show that the change has been made.
Note that displaying the dialog box is not necessary to change the value of a dialog box. It's not very efficient to use a Dialog object to return or change a value for a dialog box when you can return or change it using a property or method. Also, in most, if not all, cases, when VBA code is used in place of accessing the Dialog object, code is simpler and shorter. Therefore, the following examples also include corresponding examples that use corresponding VBA properties to perform the same tasks.
Prior to returning or changing a dialog box setting using the Dialog object, you need to identify the individual dialog box. This is done by using the Dialogs property with a WdWordDialog constant. After you have instantiated a Dialog object you can return or set options in the dialog box. The following example displays the right indent from the Paragraphs dialog box. The following example uses the RightIndent property of the ParagraphFormat object to display the right indent for the paragraph at the insertion point position.
Just as you can return dialog box settings, you can also set dialog box settings. The following example marks the Keep with next check box in the Paragraph dialog box. The following example uses the KeepWithNext property of the ParagraphFormat object to keep the selected paragraph with the following paragraph. It may be necessary to use the Update method if you define a dialog box variable early in your macro and later want to return or change the current settings.
The value returned by the Show and Display methods indicates which button was clicked to close the dialog box. The following example displays the Break dialog box, and if OK is clicked, a message is displayed on the status bar.