From: Dix Date: 2013-01-25T04:18:28+09:00 Subject: Re: Reading and looping through Excel --51018730_71f32454_9e Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I've done something similar using the spreadsheet gem, it's easy to open = a workbook and iterate over the rows extracting what you want here's the guide http://spreadsheet.rubyforge.org/files/GUIDE=5Ftxt.html To open all the files: dir =3D =22./yourdirectory/=22 files =3D Dir.entries(dir) files. each do =7Cfile=7C =20 book =3D Spreadsheet.open dir + file sheet =3D book.worsheet 0 =E2=80=A6=E2=80=A6. your work end -- =20 Pablo El jueves, 24 de enero de 2013 a las 17:41, Wayne Brisette escribi=C3=B3:= > Joel: =20 > =20 > Thanks. That may work. I'll just have to query for the OS and have one = routine =20 > for PC and one for Mac. > =20 > Wayne > =20 > =20 > ----- Original Message ---- > =46rom: Joel Pearson > To: ruby-talk ML > Sent: Thu, January 24, 2013 10:27:44 AM > Subject: Re: Reading and looping through Excel > =20 > Does this look like what you need (bottom of the page)=3F =20 > http://www.apeth.net/matt/aserrata.html > =20 > -- =20 > Posted via http://www.ruby-forum.com/. > =20 > =20 --51018730_71f32454_9e Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
I've done something similar using the spreadsheet gem, it's eas= y to open a workbook and iterate over the rows extracting what you want
here's the guide
http://spreadsheet.rubyforge.org/files/GUIDE=5Ftxt.html


To open a= ll the files:

dir =3D = ;=22./yourdirectory/=22
files =3D Dir.entries(dir)=

files. each do =7Cfile=7C&n= bsp;
  book =3D Spreadsheet.open dir + file
  sheet =3D book.worsheet 0
<= br>
   =E2=80=A6=E2=80=A6. your work<= /font>

<= font face=3D=22Comic Sans MS=22>end<= /span>



--&n= bsp;
Pablo

=20

El jueves, 24 de enero= de 2013 a las 17:41, Wayne Brisette escribi=C3=B3:

Joel:

= Thanks. That may work. I'll just have to query for the OS and have one ro= utine
for PC and one for Mac.

To: ruby-talk ML <ruby-talk=40ruby-lang.org><= /div>
Sent: Thu, January 24, 2013 10:27:44 AM
Subject: Re: = Reading and looping through Excel

Does this look= like what you need (bottom of the page)=3F

--
=20 =20 =20 =20
=20

--51018730_71f32454_9e--