Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook 2003 - How to call an Application

Status
Not open for further replies.

johnisotank

Technical User
Aug 8, 2008
258
GB
Hi, I've tried in a previous post but got no luck so I'm taking another approach.

In Outlook I am using the following procedure..

Code:
Private Sub Application_ItemSend(ByVal Item As Object, ByRef Cancel As Boolean)

I have another procedure right underneath this and I would like to be able to call the above (Application_ItemSend) procedure.

Only problem is that I don't know what variables to pass when I call it. Would someone be able to help please?

Thanks
John
 
One simply way to overcome knowing what to send is to simply declare what variables you want to go between the subs as public.

Also, Outlook can be kind of finicky at times, try using the word call in front of the sub name, that may help.

Example -
Instead of saying Application_ItemSend say CALL Application_ItemSend.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top