Class not registered while creating new internetexplorermedium object

Bartosz Gielzak (Nokia) 0 Reputation points
2026-02-02T16:09:55.8866667+00:00

In our organization we develop an internal tool in MS Excel which uses class InternetExplorerMedium in order to work. InternetExplorer class is not enough. Among hundreds of users, one person gets the "Class Not Registered" error when creating the object. Her Sytem and Office versions are no different. All is 64bit. The reference to Microsoft Internet Controls is ticked on and the file C:\Windows\System32\ieframe.dll is there. How do we resolve it?

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments

7 answers

Sort by: Most helpful
  1. Bartosz Gielzak (Nokia) 0 Reputation points
    2026-02-06T12:29:26.1033333+00:00

    **1. Manual re-registration of Core DLLs
    **after running in Command Prompt (Run as Administrator)
    *regsvr32 c:\windows\system32\ieframe.dll
    *we got the following error message: *The module "c:\windows\system32\ieframe.dll" was loaded but the call to DllRegisterServer failed with error code 0x80004001. For more information about this problem, search online using the error code as a search term.
    *and after running *regsvr32 c:\windows\system32\ExplorerFrame.dll
    *we got: *The module "c:\windows\system32\ExplorerFrame.dll" was loaded but the entry-point DllRegisterServer was not found. Make sure that "c:\windows\system32\ExplorerFrame.dll" is a valid DLL or OCX file and then try again.***2. Check for 32-bit vs 64-bit Excel
    **It is confirmed that the user has 64bit version of both OS and Office pack.
    **3. Repair the "DCOM" configuration
    **We followed the instruction. There were few pop-ups, to all of which we said Yes. Then we restarted the system. "Class not registered" error persists.

    **4. The "ieframe.dll\1" registry glitch
    **We checked the registry, the phrase **"**ieframe.dll\1" was nowhere found.

    Please provide us with the effective solution, be it system reinstalation or other feasible measure.

    [Moderator note: personal info removed]

    Was this answer helpful?

    0 comments No comments

  2. Kristen-L 14,260 Reputation points Microsoft External Staff Moderator
    2026-02-05T22:03:07.9333333+00:00

    Hi @Bartosz Gielzak (Nokia),

    Thank you for your response.

    Based on your information, here are suggestion steps you can try to troubleshoot:

    1. Manual re-registration of Core DLLs

    This is the most common fix when the "Class Not Registered" error appears for IE-based objects. You must run these in an Command Prompt (Run as Administrator).

    • Press Windows + R to open the Run dialog box.
    • Type cmd in the text field.
    • Press Ctrl + Shift + Enter instead of just Enter to open the Command Prompt with administrative privileges.
    • Register ieframe.dll: regsvr32 c:\windows\system32\ieframe.dll
    • Register ExplorerFrame.dll: regsvr32 c:\windows\system32\ExplorerFrame.dll
    • Forcing Windows to re-index the "recipes" (classes) found inside these files into the system registry.

    2. Check for 32-bit vs 64-bit Excel

    Even if the Windows OS is 64-bit, if the user has 32-bit Excel installed, the VBA environment will look for the 32-bit version of the class in the SysWOW64 directory.

    • Verify the Excel version: File > Account > About Excel.
    • If it says 32-bit, try running this command instead:  C:\Windows\SysWOW64\regsvr32.exe c:\windows\syswow64\ieframe.dll

    3. Repair the "DCOM" configuration

    The permissions for launching medium-integrity COM objects (like InternetExplorerMedium) might be blocked for this specific user.

    • Press Win + R, type dcomcnfg, and hit Enter.
    • Navigate to Component Services > Computers > My Computer > DCOM Config.
    • If a "DCOM Configuration Warning" pops up asking to record or register a missing component, click Yes.
    • You are allowing Windows to automatically heal mismatched COM registration IDs that occur during background updates.

    4. The "ieframe.dll\1" registry glitch

    A trailing backslash and number (\1) is added to the registry path of ieframe.dll, making it unreadable to VBA.

    • Open RegEdit and search for ieframe.dll\1.
    • If found, remove the \1 so the path simply reads C:\Windows\System32\ieframe.dll.
    • Restart Excel and test the tool again.

    I hope this information helps. Please try the steps and let me know whether they resolve the issue. If the problem persists, we can work together to find a solution.  

    As other users will also search for information in this community, your vote can significantly help those with similar inquiries quickly locate the most relevant resources. 

    Thank you for your kindness and for contributing to the forum.   


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".       

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 

    Was this answer helpful?

    0 comments No comments

  3. Bartosz Gielzak (Nokia) 0 Reputation points
    2026-02-05T09:15:51.2433333+00:00

    We tried

    Set ie = New InternetExplorerMedium and

    CreateObject("Application.InternetExplorer.1")

    both to the effect of -2147024894 (80040154) Class not registered

    The user has not used the tool before.

    This is the only user experiencing the problem among 100+ who do not.

    We don't use InternetExplorer object because it is not useful in our solution.

    Was this answer helpful?

    0 comments No comments

  4. Kristen-L 14,260 Reputation points Microsoft External Staff Moderator
    2026-02-02T21:39:10.2966667+00:00

    Hi @Bartosz Gielzak (Nokia),

    Thanks for reaching out to Microsoft Q&A forum.

    I know how disruptive it can be when an internal Excel tool that works across your organization suddenly fails for one user.

    To better understand what’s triggering the “Class Not Registered” issue with InternetExplorerMedium, could you share a few additional details:

    1. When did the tool last work for this user, and has anything changed since then? (Windows updates, Edge updates, Office updates, new security software, or recent GPO changes)
    2. Does InternetExplorer.Application still work, while only InternetExplorerMedium fails? Or do both fail to create?
    3. What is the full error message and error code - e.g., -2147024894 (80040154) Class not registered?
    4. Which exact line of code is throwing the error? (For example: Set ie = New InternetExplorerMedium or CreateObject("InternetExplorer.ApplicationMedium"))
    5. Is this device subject to any GPOs that disable Internet Explorer 11 or remove IE components?
    6. Is the user currently relying on Edge IE mode for other legacy applications?

    Sharing this information will help determine whether the issue is due to missing IE components, registration problems, or a configuration difference on that specific PC.

    Thank you again for your understanding and cooperation. I’m here to help and will stay with you through the process until we find a resolution.

    I look forward to hearing back from you.

     

    Was this answer helpful?


  5. AI answer

    2026-02-02T16:10:08.2366667+00:00

    The "Class Not Registered" error when creating an InternetExplorerMedium object can occur due to several reasons, even if the system and Office versions are the same for all users. Here are some steps to troubleshoot and potentially resolve the issue:

    1. Re-register the DLL: Sometimes, the DLL files may not be properly registered. You can try re-registering ieframe.dll by running the following command in an elevated Command Prompt:
         regsvr32 C:\Windows\System32\ieframe.dll
      
    2. Check for Missing Dependencies: Ensure that all dependencies required by InternetExplorerMedium are present and registered. You can use tools like Dependency Walker to check for any missing components.
    3. Repair Office Installation: If the issue persists, consider repairing the Office installation. This can fix any corrupted files that might be causing the problem.
    4. Check User Permissions: Ensure that the user has the necessary permissions to access the COM components. Sometimes, user-specific settings can lead to such errors.
    5. Check for 32-bit vs 64-bit Issues: Even though both systems are 64-bit, ensure that the Excel instance is also running in 64-bit mode. If the user has a mix of 32-bit and 64-bit components, it can lead to registration issues.
    6. Group Policy Settings: If the user is in a managed environment, check if there are any Group Policy settings that might be affecting the registration of COM components.

    If none of these steps resolve the issue, further investigation into the specific system configuration or logs may be necessary to identify the root cause.

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.