Results 1 to 5 of 5

Thread: Problem with MS Word object in VB

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2002
    Posts
    16

    Unhappy Problem with MS Word object in VB

    I have a problem with using MS Word object
    in my VB codes. The codes are simple:

    > Dim WordApp As Word.Application
    > Set WordApp = CreateObject("Word.Application")

    But I suddenly got an error message when executing
    this statement:

    > Run-time error '-2147024770(8007007e)':
    > Automation error
    > The specified module could not be found.

    Actually it was working fine before. It is also
    strange since there is no problem if I run
    the same codes in another PC. So I guess some
    OLB/DLL files are corrupted. I tried to update the
    MSWORD9.OLB file in my PC, but the problem was
    still there.

    What could be going wrong? TIA.

  2. #2
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    Are you sure MS Word is installed on the problem machine?

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Sep 2002
    Posts
    16
    Yes I tried MS Word in the PC, no problem.

  4. #4
    Lively Member Joffies's Avatar
    Join Date
    Aug 2002
    Location
    London
    Posts
    119

    Well

    What version of MS word is on the problem pc ? And what version of word did you use to compile your program with ?

    If you compiled your app with say a word 2000 reference then it will not work on a pc with word 97! The only solution is to compile your app with word 97 on.

    Hope this helped ?
    Do, or do not. There is no 'try'.

  5. #5
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    If it is a version problem, you could use late binding instead. This removes most version problems.

Posting Permissions

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



Click Here to Expand Forum to Full Width