• Library Not Registered (Office 2003 SP3)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Library Not Registered (Office 2003 SP3)

    Author
    Topic
    #449151

    We are using the following code to open a Microsoft Word Document, which works fine on 2 PCs and not on just one:

    Dim objWord As Word.Document
    Set objWord = GetObject( “C:Test.doc” , “Word.Document”)
    objWord.Application.Visible = True

    When we use this on one PC we get the following message:

    –2147319779
    Automation Error
    Library Not Registered

    I have looked around for a few solutions and I wonder if it means that a DLL is not registered for Microsoft Word? If so, I am a bit at a loss as to what to do next, as I have already de-installed Microsoft Office and re-installed it. We are running Microsoft Office 2003 SP3.

    Viewing 0 reply threads
    Author
    Replies
    • #1100436

      Has Word been installed in a non-standard folder on the problem PC?
      Try the following:
      – Search for the file msword.olb. Its default location is C:Program FilesMicrosoft OfficeOffice11 but it might be different.
      – Note the exact path of the file.
      – Select Start | Run… in Windows.
      – Type the following, using the correct path for msword.olb, then press Enter

      regsvr32 “C:Program FilesMicrosoft OfficeOffice11msword.olb”

      – Try your code again.

      • #1100611

        You are quite right, MSWORD.olb is installed in C:Program FilesMicrosoft OfficeOffice11.

        We will try what you have suggested -thanks!

      • #1101464

        Hi Hans

        We tried the steps you suggested, but got the following message: –

        (Heading: RegSvr32)
        C:Program FilesMicrosoft OfficeOFFICE11MSWORD.OLB was loaded, but the DllRegisterServer entry point was not found.
        C:Program FilesMicrosoft OfficeOFFICE11MSWORD.OLB does not appear to be a .DLL or OCX file.

        Does this mean there is a problem with the installation of MS Word?

        Grateful for any further advise you can give?

        • #1101468

          Sorry, my mistake. It turns out that you cannot use regsvr32 to register an .olb file.

          If you have a program named regtlib.exe on your PC, you can try the following:
          – Select Start | Run…
          – Type the following line, substituting the correct path to regtlib.exe:

          "C:WindowsSystem32URTTempregtlib.exe" "C:Program FilesMicrosoft OfficeOFFICE11MSWord.olb"

          – Press Enter or click OK.

          Just a shot in the dark: I found a suggestion to look for “Microsoft Office 2007 Primary Interop Assemblies” in the Add or Remove Programs control panel and if present, to uninstall it. Several people reported that this solved the “library not registered” problem.

          • #1121920

            What if i have windows vista 64-bit? I am having a lot of problems with old vba macros on my new pc that uses vista 64 bit. I keep getting the 2147319779 for powerpoint library not being registered even though it is in the vb editor. I still use office 2003.

    Viewing 0 reply threads
    Reply To: Library Not Registered (Office 2003 SP3)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: