<div>Sir,</div>  <div>&nbsp;</div>  <div><FONT color=#0000ff>I am storing values from excel to a array name 'data</FONT>', I am using below code for it.&nbsp;&nbsp;</div>  <div>&nbsp;</div>  <div>&nbsp;</div>  <div>excel = WIN32OLE::new('excel.Application')</div>  <div>&nbsp;workbook = excel.Workbooks.Open('E:\sam.xls')<BR>&nbsp;worksheet = workbook.Worksheets(1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;worksheet.Select&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;excel['Visible'] = true<BR></div>  <div>line = '2'<BR><STRONG><FONT color=#0000ff>data = Array.new<BR></FONT></STRONG>while worksheet.Range("a#{line}")['Value']<BR>data &lt;&lt; worksheet.Range("a#{line}:u#{line}")['Value']<BR>data.each { |x| print x,&nbsp; "\n\n\n".chomp }<BR>puts("\n")<BR>line.succ!<BR>end<BR></div>  <div><STRONG><FONT color=#0000ff>Now, I wants to access 3rd element stored in the above array name 'data'.</FONT></STRONG>&nbsp;<STRONG><FONT color=#0000ff> I am
 facing problem in doing this.&nbsp; Please send me a solution for this.</FONT></STRONG></div>  <div>&nbsp;</div>  <div>Thanks in Advance</div>  <div>&nbsp;</div>  <div>Vikash Kumar</div><p>&#32;
        

        
                <hr size=1></hr> 
Here’s a new way to find what you're looking for - <a href="http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/">Yahoo! Answers</a>