Call macro stored in Excel workbook from Outlook's macro
I'd like to run macro function "ExcelTestMacro" stored in "C:\Test.xls"
(which is already open), when the new mail massage comes.
I can call macro in Outlook from Excel easily for example by :
Call ", "Test","C:\test.xls")
But I could not call Excel macro from Outlook that way.
I allowed access to Visual basic Project and tried:
Set MyExBook = Excel.Application.Workbooks.open("C:\Test.xls")
call MyExBook.ExcelTestMacro
but there appears Run-Time error 'Object does not support this property or
method'. Of course I'm doing something wrong...
Somebody please help and tell me what to do
|