G
Guest
Hello
I have been wondering if there is a way to set the withevents of a
commandbuton in an add-in (vb6) for an outlook custom form.
Example:
Private WithEvents cmdtest As CommandButton
Private Sub objApptItem_Open(Cancel As Boolean)
Dim objpng As UserForm
Select Case objApptItem.FormDescription.Name
Case Is = "Planner"
Set objpng =
objApptItem.GetInspector.ModifiedFormPages("Planning")
Set cmdtest = objpng.Controls("cmdActieviteit") ‘Here I get a error
End Select
End Sub
If I run the code I get an error message type mismatch (error 13)
Steve
Sorry for my English
I have been wondering if there is a way to set the withevents of a
commandbuton in an add-in (vb6) for an outlook custom form.
Example:
Private WithEvents cmdtest As CommandButton
Private Sub objApptItem_Open(Cancel As Boolean)
Dim objpng As UserForm
Select Case objApptItem.FormDescription.Name
Case Is = "Planner"
Set objpng =
objApptItem.GetInspector.ModifiedFormPages("Planning")
Set cmdtest = objpng.Controls("cmdActieviteit") ‘Here I get a error
End Select
End Sub
If I run the code I get an error message type mismatch (error 13)
Steve
Sorry for my English