View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Bernie Deitrick Bernie Deitrick is offline
external usenet poster
 
Posts: 5,441
Default trigger outlook macro from excell.

The macro

Sub sendtasks()
'code
'End Sub

must be in either Outlook's default project or in the ThisOutlookSession's codemodule.

HTH,
Bernie
MS Excel MVP


"Bernie Deitrick" <deitbe @ consumer dot org wrote in message
...
Dim ol As Object
Set ol = CreateObject("outlook.application")
Call ol.sendtasks


HTH,
Bernie
MS Excel MVP


"Atishoo" wrote in message
...
I have a macro that will only run in outlook, is it possible to open outlook
and trigger that macro ("sendtasks") from excell?