Forgetting your MS Word password can be frustrating. The password-protected document may contain important information and losing access to it can be a big problem. Luckily, there are methods to recover the password and regain access to your MS Word document. This blog post will guide you on how to recover your MS Word password.
Method 1: Using a Password Recovery Tool
There are several password recovery tools available online, one of which is PassFab for Word. Here are the steps to use this tool:
- Download and install PassFab for Word on your computer.
- Launch the program and choose the Recover Document Open Password option.
- Click Add to import the password-protected Word document.
- Choose the attack type that suits your needs, then click Start to initiate the recovery process.
//Example of attack types Dictionary Attack: This involves trying out all the password combinations in a preset list. Brute-force Attack: This method tries all possible combinations until it finds the correct one. Brute-force with Mask Attack: This is used when you remember some part of the password.
Method 2: Using a VBA Code
You can also use a Visual Basic for Applications (VBA) code to recover your Word password:
- Press Alt + F11 to open the VBA Editor.
- Click Insert, then choose Module to create a new module.
- Copy and paste the following VBA code into the module:
Sub test() Dim i As Long i = 0 Dim FileName As String Application.FileDialog(msoFileDialogOpen).Show FileName = Application.FileDialog(msoFileDialogOpen).SelectedItems(1) ScreenUpdating = False Line Input #1, aData Close #1 Do Until i = 99999999 Application.StatusBar = "cracking " & i On Error Resume Next Documents.Open FileName:=FileName, PasswordDocument:=CStr(i) If Err = 0 Then MsgBox "Password is " & CStr(i) Exit Sub End If i = i + 1 Loop End Sub
Then, run the VBA code. The process might take some time depending on the complexity of the password.
Conclusion
Remember, password protection is there for a reason. It’s a great way to safeguard your data. However, if you forget your password, these methods can help you recover your MS Word password. Always ensure to keep a record of your passwords in a safe place to avoid such instances.