L
LEU
I was looking in the help and it said the following:
Before the procedure will run, you must connect the declared object in the
class module (wdApp in my example) with the Application object. You can do
this with the following code from any module.
Dim X As New EventClassModule
Sub Register_Event_Handler()
Set X.wdApp = Word.Application
End Sub
When I debug I get the following error: User-defined type not defined
and it points tothe following: Dim X As New EventClassModule
What am I doing wrong.
Before the procedure will run, you must connect the declared object in the
class module (wdApp in my example) with the Application object. You can do
this with the following code from any module.
Dim X As New EventClassModule
Sub Register_Event_Handler()
Set X.wdApp = Word.Application
End Sub
When I debug I get the following error: User-defined type not defined
and it points tothe following: Dim X As New EventClassModule
What am I doing wrong.