PDA

Click to See Complete Forum and Search --> : VBA cannot create MS Word Object- ActiveX Error


Dolphins
Feb 7th, 2005, 11:00 PM
I am trying to create a word object using VBA.

Word Object is created when the word is installed as a Office
Component.
Word Object is not created when the word is installed as a stand alone
product. It gives a ActiveX Error.

Can any one tell where I have gone wrong or Is some .dlls are
missing in a stand alone product.

Thanks in advance

RobDog888
Feb 7th, 2005, 11:15 PM
Welcome to the Forums.

Are these on different systems? What version of Word? What version of
Office Word? Could you post some code to show how you are creating the
objects and comment which fails where?

Sorry for all the Q's but its hard to answer with limited data.

Dolphins
Feb 9th, 2005, 07:48 AM
Hi,

The VBA and Word are on the same machine.
Word 2000 stand alone product and
Office 2000 was used for the test purpose.
I am deprived of showing the code.
It is the simple Word object creation in VB-
Word.getObject(...) Something like this.

Most of the solution, I heard was a few .dll are missing. I don't know the name of the .dll.

Thank you

RobDog888
Feb 9th, 2005, 10:45 AM
Since we can not see the code, or a logical generic code simulation, I can only say that you may be
using references in Office Word that are not included in Standalone Word. The dlls are not redistributable, though :(.
So you need to develop on stand alone Word and see if it works the same on Office Word.

HTH