Activating Word from within Excel using VBA

G

Gesualdo

I'm trying to open Word from an Excel VBA application, but I'm getting
"ClassFactory cannot supply requested class". The code I'm using is

Dim appWD As Word.Application

Set appWD = CreateObject("Word.Application")
appWD.Visible = True

I'm using Office 2003 Pro in Windows 2000, and have created a reference to
the Word 11.0 object library.
 
U

Uday Takbhate [MSFT]

You will not have to call CreateObject() if you have already created a
reference to the Word 11.0 object library from Excel VBA

Thanks
Uday Takbhate [MSFT]
Microsoft Developer Support
--------------------
 

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