Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word.application gives me an error... please help!

Status
Not open for further replies.

Ayac

Programmer
Nov 10, 2000
141
HU
Hi All!

I have this little code to invoke Word and load a document into it by clicking on the link. This worked fine so far but I found a computer that gives the following error message:

"ClassFactory cannot supply requested class"

That machine have som extra patches and goodies installed onto it, so that might affect the system's reaction. There is no problem if I use Excel.Application but Word breaks it:

...
Dim objApp
Set objApp = CreateObject("Word.application")
objApp.Visible = true
objApp.documents.Open AppURL
Set objApp = Nothing
...

Anyone would know how to fix this?
 
Thanks PHV...we installed that but unfortunately it did not make it work :(
 
So, try to repair the office install.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top