SOLVED – Windows Vista: Office 2007 installation runs every time I start Word or Excel, and Excel has an error about stdole32.tlb?

My laptop has Windows Vista Ultimate 32-bit installed as the operating system, but looking at Google, the problem affects any version of Vista.  Here is how the problem manifested on my machine.

  1. I install Office 2007 on the machine.  The machine does not have any previous version of Office on it.
  2. When I run Word, the installation screen comes up and takes a minute or two configuring Office.  On closing Word and restarting it, the installation routine runs again.  In fact, it runs every time I run Word.
  3. When I run Excel, I get a rather unhelpful dialogue box popup saying merely “stdole32.tlb”.   On clicking the close button for this dialogue box, it closes and Excel and the installation routine runs to configure Office 2007.  Again, this happens EVERY time I want to run Office 2007 applications Word and Excel.  The other applications appear to work OK on my machine.

The problem is down to registry problems, and I want to thank Brian Peek for the solution.  However, since my operating system is in Spanish, and not English, his instructions needed a little modification.  Here is a complete walk-through to solve this problem that gives you the info you need if your Windows Vista is in another language.

DISCLAIMER: If you follow these instructions, I take no responsibility for any problems you may subsequently have.  You are using these instructions at your own risk.  Also, this has not been tested on 64-bit Vista or any other version besides Windows Vista Ultimate 32-bit.  Of course, if you do decide to go ahead and try this fix, you should backup your registry and your important data.

REQUEST: If this solution works for you (or even if it doesn’t), please consider adding a comment at the end of this page so that I can see whether this fix works for the majority of people trying it.  Thanks very much, I appreciate it!

The first step is to check that your computer is indeed suffering from the permissions “bug” in Vista.  Click the Windows Start Button, and type regedit into the search box and hit return.


This will open up Windows Regedit tool.  Right click on HKEY_CLASSES_ROOT, and select Permissions:


This is what you should see in the resulting dialogue box:


Permissions should be set for a variety of users.

If your dialogue box looks like the following screenshot, then you have a problem:


As you see, no permissions have been assigned to HKEY_CLASSES_ROOT.  This is cause of the Office 2007 installation problems, as well as potentially a lot of other problems you are having with installing products.

The very first thing you need to do is backup your registry.  There is a good walkthrough of doing this here (thanks Adam).

Next, you need to download a Microsoft tool called SubInACL and install it.

If your computer is the same as mine, it should install into the following folder:

c:program filesWindows Resource KitsTools

Open your text editor and paste in the following code:

subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=YOURUSERNAME=f /grant=restricted=r /setowner=administrators
subinacl /keyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=YOURUSERNAME=f /grant=restricted=r /setowner=administrators

subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /setowner=administrators
subinacl /keyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /setowner=administrators

subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators
subinacl /keyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators

Save the file in the same folder as SubinACL.exe as “officefix.cmd”.

Now, edit the file by replacing the following text:

YOURUSERNAME – replace with your computer username.

You can find this by going into the control panel, and opening up User Accounts.


In my case, I replace YOURUSERNAME with Andy


NON-ENGLISH Vista additional instructions

Now, here is where you have to add an additional couple of steps if you are using a version of Windows Vista that is not in English.  You also need to replace these:

administrators & users – needs to be replaced with the equivalent in your language.

If you are unsure what these equivalents are, you can find this information by looking at the properties of the hard drive on your computer.  Open Explorer, and right click the C: drive and select properties:


In the dialogue that opens, click onto the Security tab.  You should see both the administrator and the users equivalent words on that tab:


If you do not see these users listed here, look at the properties of files or folders on your hard disk until you see these users and you have the equivalent words in your OS language.

Look at the table below to see what you need to substitute in your officefix.cmd file if your OS is in a non-English language (If you can supply this info in another language, please post a comment at the end of this page):

English Administrator Users
Spanish Administradores Usarios
(thanks Romu)
administrateurs utilisateurs
Dutch (thanks Bavo) Administratrors gebruikers
German (thanks Raymond) Administratoren Benutzer
Portuguese (thanks Clara) Administradores Utilizadores
Swedish (thanks Emil) administratörer användare

NOTE: Raymond who provided the German translation above, added the following piece of advice:
“If the user name contains a space, it should be written in quotes (“”) in officefix.cmd”

OK; you are now ready to run “officefix.cmd”

Open Windows Explorer and navigate to the folder where SubInACL.exe and your officefix.cmd files are located. This is probably:

c:program filesWindows Resource KitsTools

Double click the officefix.cmd file.  A screen should open and you can see the progress of the operation.

You can now go and have a coffee.  The process may take several minutes.  When it is complete, try running Word and Excel again.  This fixed my problems.

Since fixing my installation of Office 2007 (or should I say the Windows Vista Registry permissions), I have looked into other problems caused by the same registry bug.  Here is a great post on Aaron Stebner’s blog showing how to reset your Windows Vista registry.  His fix also addresses permissions in the program files folder and the windows directories.

I have since applied this fix over the top of the one I described above, and have had no problems with my machine since (except an annoying Adobe Updater issue, but I suppose I cant win everything).

Please feel free to leave a comment at the bottom of this page if you have found this works for you (or if you have any problems with it).  If you are using a different language, please post the words you need to substitute for administrators & users to help others trying to fix this Windows Vista problem.


Hi, I'm Andy Williams, an ex-Science teacher turned online entrepreneur. This is my personal website where I'll add things that interest me.

13 Responses

  1. Ferdinand Z. says:

    Thank you very much! It really solved my stdole32.tlb problem.

  2. DaDa says:

    Hello my friend, thank you very much, this is the best way to fix this problem … you are so smart. i visited 50 web and nobodys colud helpme… thanks again

  3. candu238 says:

    After daze of installs, uninstalls, weeks of waiting for config to finish, I am amazed. Thank You! All my Office software just POPS open. No lag, no thinking, no configuring, no sh1t.

    Note to Microsoft:

    fix known issues! The link to Aarons post goes back to Sept 2006, this is now Aug 2011! wth

    Thanks Again, this was making me mental.

  4. dvdgrl123 says:

    OUTSTANDING!!!! Worked perfectly, even for my computer with multiple user accounts. Thanks very much for a professional job! I’ve been trying to figure this out off and on for a few years–found your site, and it’s fixed in 30 minutes. Kudos.

  5. DN says:

    Thank God! Thank you, Andy!

    My 3 crazy days/nights working on this issue came to the end. This WORKED so well to “cure” my laptop.

    Again, thanks so much for your kind & miracle post.

  6. Sandeep Tyagi says:

    Does not work in Win-7 for MS-Excel-2007 as permissions dialog for HKEY LOCAL CLASS still holds no ownership. Also the above code for cmd file described by you terminates in win-7 in less than a second.

    In my case the problem is only associated with Excel whereas Word and powerpoint work flawlessely after modifying registry with dword NoReReg=1.
    Although, after setting the EXCEL to run with administer privledges in the properties dialog, i no more get any stdole32.tlh error but the f**king Excel always shows annoying reconfiguration wizard despite doing whatever you can. I am considering to replace MS-Office with Open to do away with the woes of bulls*it Microsoft product.

    I think the code should be remastered for windows seven.

  7. Nienke says:

    Thank you very much. After seaching 2 days fot the solution this solved it thank you thank you!!!

  8. Erica says:

    Awesome! Thanks for the clear concise directions. Easy to follow and fixed it perfectly on the first try! Much appreciation.

  9. Brian Pavitt says:

    I cannot paste the required office.cmd into the same directory as SubinACL as it says I don’t have permission to save in this location, no matter what I do. I am the administrator and have tried sharing all the folders but still to no avail.
    It gives me the option to save under my user name. Can I edit it there and achieve the desired result? It’s so frustrating not to able to get rid of this problem.
    I appreciate you will have many demands made on you but if you can spare time to help I would be very grateful.
    I am running 64bit Vista

  10. mgnc says:

    Hello Guys?
    I’m trying to resolve the same problem as above (vista installer keeps starting up on application load up), but it only occurs when I go to open visio pro 2007. All the other programmes are no problem (i.e. word/excel/access/powerpoint…etc). The permisisons window is as it should be for the hot key “…._classes_root” as above. Further the programme continues to crash. This has only just started yesterday? The only addin I have is Acrobat Pro PDFMaker.
    The only recent change has been the reestablishment of adobe acrobat within excel only (after a crash of excel the adobe addin dropped out of excel). I removed and then added the pdfmaker into “com add-inns”. I have been working through all manner of fixes from forums including repairing visio install from CD and then uninstalling and then reloading visio (this stopped the installer for kicking in but only for a little while) . The crashing is a far greater issue than the installer starting up.. CAN ANYONE PLEASE HELP

  11. pmw says:

    Thanks so much for this solution. Worked on my 64-bit Vista Home Premium system.

  12. Roscoe Ziemer says:

    My permissions are fine. I still get the vista excel 2007 stdole32.tlb error.
    I am, however, running vista 64 home premium. Any idea on a fix for me? Mine only happens every time I open Excel. Takes 5 to 10 minutes to “configure” before I can use excel

  13. Alfredo says:

    It doesn’t work in my win7 pro 64 bits. It’s a pitty I guess I’ll uninstall the office and re-install it.
    Thanks anyway, Very good tutorial

Leave a Reply

Your email address will not be published. Required fields are marked *

eight + eighteen =