Word automation error

R

Rich

I am attempting to automate Word via VB6 - something I have done many
times in the past. However, I'm now getting an "Automation Error -
the specified module could not be found" error from the following test
code:

Dim o As Word.Application
Set o = New Word.Application
o.Quit
Set o = Nothing

I am running on XP Pro. I'm referencing the Microsoft Word 11.0
Object Library.

Attempted and failed resolutions:
1. Installed the latest and greatest MDAC components
2. Tried late binding
3. I can automate other Office products (Excel, Outlook) in this way
without problem. It's just Word that is producing an error.

I've seen this error a couple of other times on this board but I have
yet to see a suggested resolution that worked for me. Any help is
appreciated.

Thanks.
 
C

Cindy M -WordMVP-

Hi Rich,

Any anti-virus software running on this machine? The Norton Office
Plugin can cause lots of weird things...
I am attempting to automate Word via VB6 - something I have done many
times in the past. However, I'm now getting an "Automation Error -
the specified module could not be found" error from the following test
code:

Dim o As Word.Application
Set o = New Word.Application
o.Quit
Set o = Nothing

I am running on XP Pro. I'm referencing the Microsoft Word 11.0
Object Library.

Attempted and failed resolutions:
1. Installed the latest and greatest MDAC components
2. Tried late binding
3. I can automate other Office products (Excel, Outlook) in this way
without problem. It's just Word that is producing an error.

I've seen this error a couple of other times on this board but I have
yet to see a suggested resolution that worked for me. Any help is
appreciated.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top