Call outlook VBA from Excel -


i have function in outlook vba want call when excel workbook closed. there way beforeclose event of excel? know how write functions event, not sure how link them current outlook session function.

ms office applications can interact each other method (this based on office 2007, others similar):

add reference app excel

in excel vba, tools\references menu select microsoft outlook 12.0 object library

in beforeclose event include

dim olapp outlook.application set olapp = new outlook.application 

you can access outlook through olapp object. don't know outlook object model, others may able more here on...


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -