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

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
 
D

David Whicker

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
 
S

Sue Mosher [MVP]

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.
 

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