Q:

Add style (format) to cell of MS Excel document using Ruby with win32ole

By default a cell in MS Excel has format "number".  If you put value '2/2' to a cell Excel converts it to date.  How to change the format of cell to Text using 'win32ole'?  I want to put '2/2' and see exactly '2/2'.  When I talking about 'win32ole' I mean http://ruby-doc.org/stdlib-1.9.3/libdoc/win32ole/rdoc/WIN32OLE.html

A:

I have found the answer.  I looked for 'change cell format using VBA'. 
So the answer:
cell. NumberFormat = '@'
Pretty not obvious.