zak wrote in post #989572:
> Hi,
>
> with ruby and win32ole it is possible to call a user-defined macro in
> excel:
>
> excel = WIN32OLE.new('Excel.Application')
> excel.run('macroname')
>
> how about outlook?
>
> outlook = WIN32OLE.new('Outlook.Application')
> outlook.run('macroname')
>
> is not working.
>
> Thanks!

If your Outlook macro is in the ThisOutlookSession module, then try 
calling your macro as a method of the Outlook Application object:

  outlook = WIN32OLE.new('Outlook.Application')
  outlook.macroname()

David

http://rubyonwindows.blogspot.com

-- 
Posted via http://www.ruby-forum.com/.