# Ruby Excels not

**URL:** <https://www.ruby-forum.com/t/ruby-excels-not/128288>\
**Category:** Ruby\
**Created:** [February 6, 2008, 1:06pm UTC](https://www.ruby-forum.com/t/ruby-excels-not/128288 "2008-02-06T13:06:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Casimir](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f17d59/32.png) [@Casimir](https://www.ruby-forum.com/u/Casimir)\
**Post date:** [February 6, 2008, 1:06pm UTC](https://www.ruby-forum.com/t/ruby-excels-not/128288/1 "2008-02-06T13:06:49Z")

</div>

Ok so I wanna play with some spreadsheets. Lets see. Lets copypaste from  
the pickaxe.

> require ‘win32ole’
> 
> # Creates OLE object to Excel
> 
> excel = WIN32OLE.new(“excel.application”)
> 
> #and so on…

Ruby replies:  
myExcelApp.rb:9:in `initialize': unknown OLE server:`Excel.Application’  
(WIN32OLERuntimeError)  
HRESULT error code:0x800401f3  
Invalid class string from myExcelApp.rb:9:in `new’  
from rudumapponator.rb:9

Ie. no joy. Something wrong with the Win32Ole library?

---

<div class="post-metadata">

**Author:** ![Casimir](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f17d59/32.png) [@Casimir](https://www.ruby-forum.com/u/Casimir)\
**Post date:** [February 6, 2008, 1:46pm UTC](https://www.ruby-forum.com/t/ruby-excels-not/128288/2 "2008-02-06T13:46:02Z")

</div>

Your code works fine for me on irb on win xp.

Can you actually open a ‘genuine’ xls file on your machine to see if  
ms-excel/office is working properly? I’ve had problems before where  
win32ole wouldn’t work b/c the ms-office software license had not yet  
been activated (don’t remember what the specific error was, tho).

---

<div class="post-metadata">

**Author:** ![Casimir](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f17d59/32.png) [@Casimir](https://www.ruby-forum.com/u/Casimir)\
**Post date:** [February 6, 2008, 2:20pm UTC](https://www.ruby-forum.com/t/ruby-excels-not/128288/3 "2008-02-06T14:20:54Z")

</div>

Ah! _slap forehead_ So I need a excel license installed on the machine??

That would explain the problem. Silly me! I guess I will need to turn to  
Open Office…

Paul D. kirjoitti:
