Hey,
OK a really basic question but one which has had me baffled all morning.
I have created an Outlook Task Form.
Now all I want to happen is display a message box from VBA either when the form loads or when the Form is sent.
I just cannot get the VBA code to run.
I have currently put the code in the project ThisOutlookSession. Am I missing something simple do I need to somewhere wire the VBA up to the form?
Or on an even simpler example if I put a button on a form where is its onlick event as there appears to be no property for this?Code:Private Sub Application_ItemLoad(ByVal Item As Object) MsgBox "item load" End Sub Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean) MsgBox "item send" End Sub
I have a commandbutton1 on the form, then within module 1 I have the code
but still when the form is run and the button is clicked nothing happens.Sub CommandButton1_Click()
MsgBox "button click"
End Sub





Reply With Quote