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.
 
Back
Top