<div>Sir,</div> <div> </div> <div><FONT color=#0000ff>I am storing values from excel to a array name 'data</FONT>', I am using below code for it. </div> <div> </div> <div> </div> <div>excel = WIN32OLE::new('excel.Application')</div> <div> workbook = excel.Workbooks.Open('E:\sam.xls')<BR> worksheet = workbook.Worksheets(1) <BR> worksheet.Select <BR> 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 << worksheet.Range("a#{line}:u#{line}")['Value']<BR>data.each { |x| print x, "\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> <STRONG><FONT color=#0000ff> I am
facing problem in doing this. Please send me a solution for this.</FONT></STRONG></div> <div> </div> <div>Thanks in Advance</div> <div> </div> <div>Vikash Kumar</div><p> 
        
        
                <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>