Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / April 2005

Tip: Looking for answers? Try searching our database.

Calling Outlook VBA function from another application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Composer - 09 Apr 2005 11:28 GMT
I want an Access application to know which (non-default) Outlook folder
to put an item into.  There's already code in Outlook to find this
folder, but I don't want to re-write this code in Access.  That's poor
encapsulation.

The Access Application object has a useful method named Run.  It allows
any application to call any user-written Access function and to obtain
the result.

This is a very good way to encapsulate knowledge about the Access inner
workings.  They can change, but the calling application need not be
concerned.

I haven't found a similar method in the Outlook model.  I'd really
prefer NOT to hard-code lots of Outlook folder names, etc. into my
Access application.

Does anyone know of a way to call an Outlook function from another app?

Thanks.
Michael Bauer - 09 Apr 2005 18:22 GMT
Hi,

you can call public methods in ThisOutlookSession from outside.

Signature

Viele Grüße
Michael Bauer - MVP Outlook

> I want an Access application to know which (non-default) Outlook folder
> to put an item into.  There's already code in Outlook to find this
[quoted text clipped - 16 lines]
>
> Thanks.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.