|
-
Sep 23rd, 2002, 03:44 AM
#1
Thread Starter
Junior Member
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.
-
Sep 23rd, 2002, 03:59 AM
#2
Are you sure MS Word is installed on the problem machine?
-
Sep 23rd, 2002, 04:03 AM
#3
Thread Starter
Junior Member
Yes I tried MS Word in the PC, no problem.
-
Sep 23rd, 2002, 05:36 AM
#4
Lively Member
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'.
-
Sep 23rd, 2002, 06:09 AM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|