DennyCrane
11-15-2018, 06:39 AM
Hey there,
I hope you can help me with this problem, like you did with the last.
I want to use the double-Click-Event in Word and so i did the following:
i created a new class and named it "Doubleclick"
The Code in this class is the following:
Public WithEvents App As Word.Application
Private Sub App_WindowBeforeDoubleClick(ByVal Sel As Selection, Cancel As Boolean)
End Sub
Now, as far as i know, i have to register this new event by running the macro from any module:
Dim X As New Doubleclick
Sub Register_Event_Handler()
Set X.App = Word.Application
End Sub
But all I get is a runtime error 424: Object required. Where is my error?
Greets
Denny Crane
I hope you can help me with this problem, like you did with the last.
I want to use the double-Click-Event in Word and so i did the following:
i created a new class and named it "Doubleclick"
The Code in this class is the following:
Public WithEvents App As Word.Application
Private Sub App_WindowBeforeDoubleClick(ByVal Sel As Selection, Cancel As Boolean)
End Sub
Now, as far as i know, i have to register this new event by running the macro from any module:
Dim X As New Doubleclick
Sub Register_Event_Handler()
Set X.App = Word.Application
End Sub
But all I get is a runtime error 424: Object required. Where is my error?
Greets
Denny Crane