So you're trying to call an Outlook VBA procedure from an Excel macro? The
only way that might work -- and it's unsupported -- is if the procedure is a
Public Sub or Function in the ThisOutlookSession module in Outlook VBA. The
syntax for a subroutine would be:
Set myOlApp = CreateObject("Outlook.Application")
myOlApp.MyProcedure
Again, this is an unsupported technique. If it doesn't work, we can't help
you. The alternative, as I'm sure you already know, is to put the code in
Excel VBA instead.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers