Calling Outlook VBA function from another application

  • Thread starter Thread starter Composer
  • Start date Start date
C

Composer

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.
 
Hi,

you can call public methods in ThisOutlookSession from outside.
 

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

Back
Top