
Run-time error '-2147221231 (80040111)': Automation error ClassFactory cannot supply requested class
I'm getting this error trying to set up a msxml 4.0 DOM document. I'm
trying this with new code and with old code that used to run
perfectly. The new code is the simplest in a one button form with the
button named 'cmdLoad' Here's the code:
Private Sub cmdLoad_Click()
Dim doc As New MSXML2.DOMDocument
Set doc = CreateObject("MSXML2.DOMDocument")
End Sub
The error occurs when the Set line is executed.
I've uninstalled and reinstalled msxml 4.0, I've double and triple
checked that the project has msxml 4.0 chosen as a reference. Nothing
seems to work. I'm at my wit's end. I've looked in this newsgroup,
but can't find any reference to this exact message. Any suggestions
would be appreciated.
Thank you,
IDNMember