From: Heesob Park Date: 2013-05-13T17:32:45+09:00 Subject: Re: Problem using display method with Outlook WIN32OLE Hi, 2013/5/13 Joel Pearson > > Using VBA, the simplest way to get Outlook to add an email signature to > an email body is to use the mail "display" method. > > However, because WIN32OLE uses method_missing to send commands, it seems > to be Object#display which is being triggered, simply displaying the > mail's object ID in the console. > > Is there a way for me to get around this behaviour and get the correct > WIN32OLE method called? I had considered undefining Object#display, but > that seems like a rather dangerous thing to do. > You can use WIN32OLE#invoke method like this: excel = WIN32OLE.new('Excel.Application') excel.invoke('Quit') # => same as excel.Quit Regards, Park Heesob