Arup Rakshit wrote in post #1093511:
> what the command 'unless excel.visible' does? And why 'wb. close(0)'
> instead 'wb.Close()'?

excel.visible is because of this line:
excel = WIN32OLE.connect('excel.application')
If we've highjacked an existing excel instance we don't want to close 
it.

wb.close(0) means don't save the file.
I've never tried it with just "()", give it a go and see what happens :)

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