Com Add-In object reference

R

Ron Matuszek

I've created a COM Add-In and I can capture common Outlook events like the
creation of a new Inspector but I can't figure out how to expose my add-in's
objects and methods to an Outlook form and VB Script.

I want to augment my custom form with my custom Widget Collection class.
Since a COM add-in using the Outlook COM shim doesn't show up on the Add-Ins
list or in the object browser within the VBA IDE I can't figure out how to
reference it from a VB Script. I want to show a windows form when I click a
button on my custom Outlook form.

I want this VB Script to work:

Sub EditWidgetButton_Click
MyAddin.WidgetEditorForm.ItemReference(Me.MyWidgetCollection)
MyAddIn.WidgetEditorForm.Show
End Sub

Right now I get a "Object Required" error when the script tries to evaluate
"MyAddIn"
 

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