If your computer is used by many people, you need to protect applications that can not be used by all people. There is a simple way so that people can not use the application with Ms Word freely.

We can make an application in which if someone want to use the Microsoft Word application they need to enter a password that we have set. To do so:
1. Open your Microsoft Word application, then select the tab [View].
2. On the tape below, click the [macros].
3. After the window appears “macros”, write “Macro name” with the name “AutoNew.” Note, the name of the macro should be stored with the name “AutoNew.”
4. Click [Create] to start to create a macro.
5. Next, a window will appear Microsoft Visual Basic editor. At the window, type the script below.
pass = InputBox ( “Enter your password.”)
If pass = “secret” Then
End
Else
MsgBox ( “Password that you entered is incorrect.”)
ActiveDocument.Close
End If
In the script above, you can change the “secret” with the password that you wish. Save your macro and then close the Microsoft Word application.
Now, create a new Microsoft Word shortcut by clicking the right mouse on the desktop and select the [New]> [Shortcut]. Fill “Type the location of the item” with “C: Program Files-Microsoft-Office-Office12-WINWORD.EXE” / n, and then click [Next].
Fill “Type a name for this Shortcut” with the name “Microsoft Office Word 2007“. Delete the shortcut in the start menu, and then move the shortcut you just created to the Start menu, replace the original shortcut.
Then close the Microsoft word application. From now on when someone want to use Microsoft Word and create a new document, show box that asks for a password.
Source: pcplus














No comments yet.