anon1m0us / yahoo.com wrote:
> Hi;
> I need to save an Excel Spreadsheet with Ruby. I used the Save AND
> SaveAs methods, but each time I get prompted "Do you want to save the
> changes you made..." How can I save the workbook without this prompt.
> In addition, is there away to add a timestamp to the save file
> like.....application12122006.xls or any format that contains a time
> stamp?
>
>
>
>   
Hey

I think you can use

book.close

passing either 1 or 0 (I can't remember which)
Also, I can't remember if you need to call SaveAs first.

This should work:

book = #get workbook
book.SaveAs "SomeFile.xls"
book.close(0)

Hope this helps
Gustav Paul