From: Masaki Suketa Date: 2007-01-04T07:07:19+09:00 Subject: Re: Win32OLE: how to pass parameters by reference? In message "Win32OLE: how to pass parameters by reference?" on 07/01/03, "Jan Svitok" writes: > I need to call an OLE method that takes a VARIANT argument, and fills > it with data. How can I accomplish this? Somewhere in the ruby-cvs > attic I've found WIN32OLE_VARIANT, unfortunately it is removed now. No, WIN32OLE_VARIANT is Ruby 1.9 feature. Sorry, Ruby 1.8 does not support WIN32OLE_VARIANT. In Ruby 1.8, WIN32OLE#_invoke method may help you. oleobj._invoke(dispid, [value], [WIN32OLE::VARIANT::VT_VARIANT]) The dispid is the dispatch id of the OLE method to call. The value is the data which you want to pass. Regards, Masaki Suketa