Run code in VB COM AddIn from CommandButton1 on Custom Outlook Form

  • Thread starter Thread starter David Whicker
  • Start date Start date
D

David Whicker

Greetings All,

I have a Command Button in the body of my Custom Outlook Form (Not in
the menus or Toolbars).

What steps do I need to do to allow this button to run code in my VB
COM AddIn?

The code on the Custom Outlook form is:

Sub CommandButton1_Click
'Attempt To run code now
Call FindContact("David")
End Sub

And FindContact is a Sub in the AddIn.

Thanks in advance,

David Whicker
dwhicker@REMOVE_THIShotmail.com
 
Thanks Sue for that link.

I am struggling with this one. I cannot get the code to run in the
Customised Outlook Form.

Is there a full example of doing this somewhere on the web, or do you
know any books with this in.

Thanks in advance,

David Whicker
dwhicker@REMOVE_THIShotmail.com
 
What is your form code for the button? Is the form published? Does other code on the form run?

Also show the code you used in your VB project that you used to follow the KB article instructions.
 
Back
Top