Results 1 to 7 of 7
  1. #1
    Lounger
    Join Date
    Jun 2004
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Library Not Registered (Office 2003 SP3)

    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.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Library Not Registered (Office 2003 SP3)

    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.

  3. #3
    Lounger
    Join Date
    Jun 2004
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Library Not Registered (Office 2003 SP3)

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

    We will try what you have suggested -thanks!

  4. #4
    Lounger
    Join Date
    Jun 2004
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Library Not Registered (Office 2003 SP3)

    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?

  5. #5
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Library Not Registered (Office 2003 SP3)

    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:
    <code>
    "C:WindowsSystem32URTTempregtlib.exe" "C:Program FilesMicrosoft OfficeOFFICE11MSWord.olb"
    </code>
    - 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.

  6. #6
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Illinois
    Posts
    552
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Library Not Registered (Office 2003 SP3)

    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.

  7. #7
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Library Not Registered (Office 2003 SP3)

    I have no idea, sorry.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •