The sub below is run from Outlook and is automatically triggered to check for a specific value in the Outlook Calendar appointments. It triggers an Excel macro using automation. This same function could run in Access IF it used not project controls. My Add-In name is PERSONAL_ENHANCED.XLA which contains the macros.
Public Sub RunReports()
Dim myXlApp As Excel.Application
Dim myBook As Excel.Workbook
Dim pathSep As String
Dim libItem As String
Dim strActiveBook As String
Dim strMacro As String
Dim Item As Integer
If UBound(Appts) < 0 Then
Exit Sub
End If
On Error Resume Next
Set myXlApp = GetObject(Class:="Excel.Application"

If myXlApp Is Nothing Then
Set myXlApp = New Excel.Application
End If
pathSep = myXlApp.PathSeparator
libItem = myXlApp.StartupPath & pathSep & "PERSONAL_ENHANCED.Xla"
myXlApp.Workbooks.Open filename:=libItem
myXlApp.Workbooks.Add
Set myBook = myXlApp.ActiveWorkbook
myXlApp.Visible = True
' Find out if this is already identified
' you only want to run it once
For Item = 0 To UBound(Appts)
Debug.Print Appts(Item).Subject
strMacro = Appts(Item).Subject
Do While InStr(1, strMacro, " "

> 0
strMacro = Mid$(strMacro, 1, InStr(1, strMacro, " "

+ 1)
Loop
strMacro = "PERSONAL_ENHANCED.XLA!" & strMacro
myXlApp.Run Macro:=strMacro
Appts(Item).myAppt.ReminderSet = False
Appts(Item).myAppt.Save
Next Item
End Sub
---------------------
scking@arinc.com
---------------------