--00032555b67e0ec391049f9fd86a Content-Type: text/plain; charset=UTF-8 Following along these lines, is there any reference for the OLE API for Office products or OLE in general? I've always wanted to work with the win32ole gem, but I don't know where to look on MSDN to know how to even play with those APIs. -Nick Klauer On Tue, Mar 29, 2011 at 09:06, David Mullet <david.mullet / gmail.com> wrote: > zak wrote in post #989572: > > Hi, > > > > with ruby and win32ole it is possible to call a user-defined macro in > > excel: > > > > excel IN32OLE.new('Excel.Application') > > excel.run('macroname') > > > > how about outlook? > > > > outlook IN32OLE.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 IN32OLE.new('Outlook.Application') > outlook.macroname() > > David > > http://rubyonwindows.blogspot.com > > -- > Posted via http://www.ruby-forum.com/. > > --00032555b67e0ec391049f9fd86a--