jdrawmer

Probably just another minor issue but i'm requiring to access the current outlook application (Me.Application from the class) from a custom form, to then access the currently selected item, but obviously Me.Application won't work as its in the form class, and ThisApplication doesn't have any desired affect, i was wondering how you can do it!

Thanks a lot,
Jay




Re: Visual Studio Tools for Office accessing Current Outlook Application (Me.Application) from a form

Sue Mosher - Outlook MVP

I usually write an override for the form's constructor so I can pass the Outlook.Application object to the form as a parameter when I create the form class instance.



Re: Visual Studio Tools for Office accessing Current Outlook Application (Me.Application) from a form

jdrawmer

Thats great thanks a lot! Sorted it out now, and i've trapped the application,

Legend,
Jay