Fax events in VBA

Joined
Aug 21, 2008
Messages
1
Reaction score
0
Hi,
I've a problem to work with Fax events in VBA. I want to run a procedure when the 'OnOutgoingMessageAdded' event is triggered. The code is following:


Option Explicit
Dim WithEvents oFS As FAXCOMEXLib.FaxServer

Private Sub Application_Startup()

Set oFS = New FAXCOMEXLib.FaxServer

End Sub

Sub oFS_OnOutgoingMessageAdded(Fserver As FAXCOMEXLib.FaxServer, MsgId As String)
' the event handler
End Sub

and the error I get, is in the last procedure definition:
Procedure declaration does not match description of event or procedure having same name


I appreciate any help.
 

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