Get IT Solutions

How to do IT
Menu
  • Home
  • SCCM 2012
    • Deploy Packages
    • Troubleshooting errors SCCM 2012
  • Windows
    • Applications Silent Install
    • Windows Tools
    • Windows Error
    • Script
    • Exchange Server
    • Troubleshooting Office
    • Applications Errors
  • Database
    • SQL Server
    • MySQL
    • Oracle
  • Cybersecurity
  • Other
  • Reviews

Resolve Runtime Error 91 – Windows 10/11

Are you finding it difficult to work on Excel or Word because of an error? The runtime error 91 is an error that originates in Microsoft Office and makes it impossible to use it, let alone open it. And if you regularly use Office for your job or university work, the situation becomes difficult, especially since the error is pretty cryptic. So, what causes the word and excel runtime error 91? Is there a way out of it? Do you have to go through the installation process again or make a new account? Read on to discover all the answers.  

 

Table of Contents

  • What Is the “Runtime Error”?
  • What Causes the “Runtime Error 91” Error?
  • How to Fix Runtime Error 91?
    • Method 1 – Reinstall the Problematic Application
    • Method 2 – Set Dcomcnfg.exe to Be Allowed to Run by “Everyone”
    • Method 3 – Give Full Control to the Frxxmltag.xml File
    • Method 4 – Disable Add-Ins to Fix Word Runtime Error
    • Method 5 – Repair Damaged Word Documents to Fix Error 91
    • Method 6 – Scan Your Machine for Malware
    • Method 7 – Update Windows
  • Conclusion

What Is the “Runtime Error”?

The runtime error is an error that is produced on Windows-backed systems, more specifically on programs that use the DCOMCnfg.exe files. The files are responsible for regulating file permission for your system. Besides that, it also helps launch apps and programs for use. In case this file gets damaged or corrupted, you’ll face runtime error 91 excel VBA or its other variants. 

 

What Causes the “Runtime Error 91” Error?

Like every other runtime error, the word or excel “runtime error 91: Object variable or with block variable not set” occurs because of a corrupted DCOMCnfg.exe file. Since the .exe file is tasked with giving permissions and opening files, the entire Microsoft Office stops and no programs under it, word, excel, or PowerPoint, open up. 

 

How to Fix Runtime Error 91?

While the error is pretty annoying, its solutions are quite straightforward. Here’s how you can solve VBA runtime error 91:

 

Method 1 – Reinstall the Problematic Application

One can run the SFC scan to fix the problems within the system file and eliminate the issue. But what if the file corruption arises from a third-party application and not from default Windows apps? In such a case, even if it is a core app, the SFC scan won’t work. 

The best solution is to uninstall and install the problematic app again. To do so:

  1. Open the Control Panel by pressing Win+R and typing control on the pop-up window that appears. You can also search it manually from the Start Menu.
  2. From the control panel, navigate to Programs and then Uninstall a program.
  3. A list of all the downloaded applications will appear. Select the one causing the problem, in this case Microsoft Office. Right-click on it and choose Uninstall. 
  4. Once uninstalled, install the app and check if the problem persists.

 

Method 2 – Set Dcomcnfg.exe to Be Allowed to Run by “Everyone”

As discussed, Dcomcnfg.exe remains the biggest culprit behind the runtime error 91. Since the corruption causes the problem, you can change the file’s settings to get rid of it. 

To make the suitable changes:

  1. On the Start menu’s search bar, type DCOMCnfg.exe to find and open the file. 
  2. Once you open the file, a window titled Component Services will appear. 
  3. From the menu, navigate to Computers – My Computer.
  4. Right-click on My Computer, and from the drop-down menu, select Properties. Another pop-up window appears.
  5. On the window, select the COM Security tab.
  6. At the top, you’ll see Access Permissions. Click the Edit Limits option under it. 
  7. From the Edit Limits window, enter Everyone and ensure that Local and Remote Access have the boxes checked against Allow. 
  8. Once you’ve checked the box, click OK on each window you’ve opened till now. The effect will take place immediately, and your access to excel and word should be restored. 

 

Method 3 – Give Full Control to the Frxxmltag.xml File

If you’ve noticed that your system’s visual basic runtime error 91 is accompanied by Error 5999, then you should try giving complete control to the Frxxmltag.xml file. Here’s how:

READ ALSO -   Fix Stop Code Error 0xc000021a On Windows 10, 7 and xp
  1. Launch Windows and operate it as an administrator. 
  2. Open Windows Explorer and navigate to the FRx directory.
  3. Inside the directory, find FRxXMLTag.XML and right-click on it. 
  4. Select Properties. 
  5. From the properties window, go to Security and then Everyone. 
  6. Under the Everyone group, choose Full Control.
  7. Press OK. The changes should be made, and the error is gone. 

 

Method 4 – Disable Add-Ins to Fix Word Runtime Error

Undoubtedly, add-ins play an integral role in enhancing Word’s functionality and making it more user-friendly. They are always present as templates to make your work clearer and more manageable. However, sometimes these add-ins are corrupted and can stop Word from functioning correctly, showing visual basic runtime error 91.

Follow the steps below to disable these add-ins and bring back your Word:

  1. First, close all Word windows.
  2. Now, launch the Run utility by pressing Win+R together. 
  3. 3.Type winword /safe in the box to open the Word application in safe mode.
  4. After it opens, navigate to File, Options, and then Add-ins.
  5. Choose COM Add-ins and tap on Go. 
  6. You’ll discover a list of all add-ins on the COM Add-ins window. Uncheck them all to remove them and click on OK.
  7. Restart the application, and hopefully, it should work smoothly.

If the Word application works fine, then the problem must lie with one of the add-ins. Add them one by one and restart the application after each. This will help point out which exact add-in was causing the issue. 

 

Method 5 – Repair Damaged Word Documents to Fix Error 91

If not the DCOMCnfg.exe file, it can be the corruption of a Word document causing the error. Accidents like partition failure, Operating system crash, random formatting, viruses, etc., can be the premise of Error 91. 

Hence, if you also notice that Word file corruption is causing the problem, you’ll need to download a dedicated repair tool. Several reliable tools are available on the market, and you can take your pick. The best ones are:

  1. Wondershare Repairit
  2. Remo Word Repair
  3. WordFIX
  4. S2 Recovery Tools

These tools are quite easy to use and have a high success rate. They’ll repair the corrupted files while still maintaining the original format. 

 

Method 6 – Scan Your Machine for Malware

Malware like bugs and viruses can also be behind the problems occurring in your system. Besides just attacking the operating system, it also corrupts files attached to the applications. Thus, factoring in malware, the vb runtime error 91 can also be caused by viruses. 

To check whether this is true, use a reliable anti-virus (or malware) software for a complete scan of your system. You can either use third-party software available on the market or go for Microsoft Defender. It’ll carry out a full system scan to rule out any possibility of malware presence. 

To use it:

  1. On the bottom right, you’ll spot an upwards arrow called system tray. Open the tray and select the Windows Security icon.
  2. From the list of options, choose Virus and threat protection.
  3. On the right side panel, there will be a Scan options link below Quick Scan. Click on it, and a new window will appear. 
  4. Tap on Full Scan and then Scan now. 
  5. If it detects any malware, it’ll report the same back, and you can get rid of it manually. 

Method 7 – Update Windows

The .NET Framework or Visual Basic runtime error 91 can be solved by updating Windows operating system. Since .NET Framework and Visual Basic’s updates are part of the OS update, you’ll only have to update once by:

  1. Go to the Start Menu and select Settings.
  2. Choose Update & Security and then Check for updates.
  3. If there are any pending updates, download and install them.
  4. Restart the computer.

 

Conclusion

And there you have it! We hope you found the answers you were looking for to fix runtime error 91. Microsoft is an essential part of our daily work routine; losing it for even a few hours is a nightmare. So, keep these solutions handy, in case you face this issue again!

Share
Tweet
Google+
Pinterest
Linkedin
Stumble
Email
Prev Article
Next Article

Related Articles

Error 0x8004005 and error 0x800C0005
Error 0x8004005 and error 0x800C0005 appears on the windows update …

Error 0x8004005 and Error 0x800C0005 Best Solutions

Net Helpmsg 2185 And Net Helpmsg 2186
In this post we’ll discuss on how to fix Net …

How To Fix Net Helpmsg 2185 and Net Helpmsg 2186

Best Computers & Laptops

Best Computer for Cyber Security – Laptop and Desktop
Best Computer for Cyber Security
Hey, are you seeking the best computer for cyber security? Well, we must say you have come to the right place to find your answer and guidance. There are a plethora of products out there for you to pick from ...
Read More
Best Computer for Microsoft Office & Excel – Laptop and Desktop
Best Computer for Microsoft Office & Excel
Are you finding the Best Computer for Microsoft Office and Excel? In modern days, the best laptop or desktop set is the one which is both portable, has good looks and offers the smoothest performance. Microsoft Office is a package ...
Read More
Best Computer for Hacking – Laptop and Desktop Selection
Best computer for Hacking
When it comes to hacking, either laptop or desktop, choosing the best computer for hacking would be an exhilarating job. There are many specifications to be considered for hacking ...
Read More

SQL Server Tips

FIX sqlstate 42000 – mysql error 1064 – you have an error in your sql syntax
Sqlstate 42000 Is a general code that come together with other number. Most often comes with the code 1064 and ...
Read More
The execute permission was denied on the object – SQL Server Error
The execute permission was denied on the object
The following article will handle “the execute permission was denied on the object” error appears on SQL Server. This error ...
Read More
How to Read Data from LDF file in SQL Server – A Complete Guide
Read LDF File
Hello Everyone, Today we are going to address the most popular query of SQL users, how to read data from ...
Read More

Search

We are on:

Get FREE SPACE for your PC

3 Method to Delete Temp Files in Windows 7/10 including vbs script

In this post we will explain how to delete temp files windows 7 using three different methods including vbs script ...
Read More

Fastest way to delete hiberfil sys from windows 10/8/7 and XP – CMD

In this article we will explain how to remove or delete hiberfil sys from Windows 10/8/7 and XP . If you does ...
Read More

Learn How to Silent Install Applications

Silent Install Adobe Flash Player
In this tutorial will explain how to silent install adobe flash player 25, Msi and Exe version. How to disable auto update and uninstall older ...
Read More
Java Silent Install and Uninstall Older Version – Deploy Package MSI
This tutorial will explain how to silent install Java MSI/EXE version and disable auto-update. The command line will also uninstall the ...
Read More
Silent Install Adobe Shockwave Player 12 and disable update
In this tutorial will explain how to silent install Adobe Shockwave Player 12 msi and disable auto update. The command will uninstall older ...
Read More
Silent Install Google Chrome MSI, Silent Uninstall and Disable Auto Update
This tutorial will explain how to silent install Google Chrome MSI and disable auto update. The command will uninstall older version of ...
Read More
Silent Install Adobe Reader 11 and DC – msi and exe – disable update
In this tutorial will explain how to silent install Adobe Reader version 11 and DC. We will user both version "msi" ...
Read More
Silent Install Mozilla Firefox msi and exe file – Including Silent Uninstallation
This tutorial will explain how to silent install Mozilla Firefox. We will use MSI and EXE files to perform a silent ...
Read More
Skype Silent Install Msi and disable updates
In this tutorial will explain how to silent install skype  and disable auto update. The command will uninstall older version of Skype and ...
Read More
Filezilla Silent Install msi and exe version
Filezilla silent install tutorial will explain how to perform a silent installation of application. We will explain methods, silent install ...
Read More
Silent install VLC Media Player
In this tutorial will explain how to silent install VLC Media Player. We will explain both methods for exe and ...
Read More
Notepad++ silent install exe and msi version – Command Line
Notepad++ silent install is the new article from a series of silent installations. Notepad++ as free software has two main ...
Read More

Batch File Solutions

How to list files in cmd – Command Prompt – Windows 10
Whenever you want to search and make a list of all files on a specific folder, you used the windows ...
Read More
Batch rename multiple files in folder – CMD script – Bulk Method – Win 10
The following article will teach how to rename multiple files in a folder with the bulk method using Command Line ...
Read More
Batch script rename file using Command Line (CMD) & PowerShell – Windows 10
The following article will use the “rename” or “ren” command to rename the file using a command prompt. Also, we ...
Read More
Change extension of multiple files at once – CMD batch file
The following article will teach the methods to change the extension of multiple files at once using command prompt and ...
Read More
How to delete registry key with command line | PowerShell | Batch
The following article is the third of series about registry and working on it through command line (CMD) and PowerShell ...
Read More
How to add registry key & values with CMD | PowerShell | Batch
The registry is the place where most of the applications store the settings but not only. Used also from the ...
Read More
Unmap Network Drive CMD – (Batch file) – net use delete command
After we posted the methods to map network drive using cmd commands we come this time with the method to ...
Read More
Map Network Drive cmd (batch file) – net use user password
This article will focus on another way to map a network drive on your computer instead of from the explorer ...
Read More
How to Find Large Files on Windows 7 & 10 – CMD Forfiles Command
If the capacity of your hard drive is running low, it is time to clean off some files and to ...
Read More
CMD Script to check disk space on windows and multiple remote servers
The following article will provide you script to check disk space. The Script monitor space on windows and multiple remote ...
Read More

Get IT Solutions

How to do IT

About Us

Get IT Solutions is a personal blog, which is managed to guide people for various topic.

Second Menu

  • Donate
  • About Us
  • Contact Us
  • Privacy Policy

What Will You Find

Automation is our area of writing where are included scripts, batch and various tips to automate your daily job.
Copyright © 2025 Get IT Solutions