I have a custom Outlook form that needs to pull data from my Outlook database generally to populate itself and, launch additional forms, depending on the data that comes back. I've written the subroutines that do all the work in VBA and those now reside in the Outlook Macro file (VBAProject.OTM). I want to be able to invoke the triggering code from within the custom form by clicking on a Command Button on the form. It is my understanding that the only place in which I can write my event handler for the Command Button is in the VB Scripting window available through the "View Code" menu item when in Form Design Mode in Outlook's Developer tab.

I need the syntax for calling subroutines or functions in the VBAProject.OTM from the form's VBScript window.

I appreciate the guidance.