ClassFactory cannot supply requested class

S

sonomaenterprises

When running this function (VB6 inside an Outlook Add-in):

Function GetWordVersion() As Integer
Dim oWord
Set oWord = CreateObject("Word.Application")
GetWordVersion = Int(Left(oWord.Application.Version, 3))
Set oWord = Nothing
End Function

I get this message:
Automation error
ClassFactory cannot supply requested class , Error Number: -2147221231
 

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