Ok,
now for your form
Here is the code I have for my button which I called btnRunSplit
Your code should have similar format/syntax.
Code:
Private Sub btnRunSplit_Click()
'This is the code behind the button
'It is private to this Form
On Error GoTo Err_btnRunSplit_Click
SplitAdviceGiven 'This is the call to the procedure
'The procedure runs to completion (or error)
'And returns here to finish this Click event code
Exit_btnRunSplit_Click:
Exit Sub
Err_btnRunSplit_Click:
MsgBox Err.Description
Resume Exit_btnRunSplit_Click
End Sub
Note:
You could put a msgbox "SplitAdvice has completed",vbOkOnly at the end of either the standard module procedure, or the Click event code.