From: jeth row Date: 2009-12-13T03:35:34+09:00 Subject: Re: Access Excel David Mullet wrote: > xl = WIN32OLE.connect('C:\Path To File\MyWorkbook.xls').Application Thank you David. I had been trying this, but using: > xl = WIN32OLE.connect("C:\Path To File\MyWorkbook.xls").Application - which doesn't seem to work. This brings up the question, how could a Ruby script find the full path of a running Excel workbook? (though I would appreciate an answer here, this question isn't Ruby-specific, and I can find the answer elsewhere) Still, I would appreciate an example of calling "AccessibleOjbectFromWindow", which is in the Oleacc.dll library. (an example or link to an example would be great) I already know how to get the hwnd of the "EXCEL7" ChildWindow. -- Posted via http://www.ruby-forum.com/.