Heesob Park
2/24/2009 7:12:00 AM
2009/2/24 Deepa Rajendran <deeparaj12@gmail.com>:
> Hai friends,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0How to fetch an excel sheet name in rub=
y...
You can do it using win32ole like this:
require 'win32ole'
xl =3D WIN32OLE.new('Excel.Application')
wb =3D xl.Workbooks.Open("c:/work/test.xls")
ws =3D wb.Worksheets(1)
puts ws.Name
wb.Close
xl.Quit
Regards,
Park Heesob