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.