Derek Keogh
May 31st, 1999, 12:53 PM
I have created an ActiveX control using the wizards in VC++ 6.
When I try to use it from VB 6.0 everything works. But in VBA for Word 97
I get this message when I try to call a function/method.
"Run-time error '-2147418113 (8000fff)':
Method 'ShowTestMessage' of object 'TestControl' failed"
Here is the sample code VB code I use
Private Sub CommandButton1_Click()
Dim x As 'TestControl.Application
Set x = New 'TestControl.Application
x.ShowTestMessage
End Sub
This code works fine from VB 6.0 and VBA for Word 2000
but not for Word 97.
What's going on?
When I try to use it from VB 6.0 everything works. But in VBA for Word 97
I get this message when I try to call a function/method.
"Run-time error '-2147418113 (8000fff)':
Method 'ShowTestMessage' of object 'TestControl' failed"
Here is the sample code VB code I use
Private Sub CommandButton1_Click()
Dim x As 'TestControl.Application
Set x = New 'TestControl.Application
x.ShowTestMessage
End Sub
This code works fine from VB 6.0 and VBA for Word 2000
but not for Word 97.
What's going on?