<div>I am loading a file by giving the absolute path, the below code works fine:</div>  <div>&nbsp;</div>  <div>excel = WIN32OLE::new('excel.Application')<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR><FONT color=#0000bf> workbook = excel.Workbooks.Open('C:\demo\mation.xls')<BR></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; worksheet = workbook.Worksheets(1)&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; worksheet.Select<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; excel['Visible'] = true</div>  <div>&nbsp;</div>  <div>&nbsp;</div>  <div><STRONG>I want to use the&nbsp;name of the file to open 'mation.xls', not the entire path 'C:\demo\mation.xls'.</STRONG></div>  <div><STRONG></STRONG>&nbsp;</div>  <div><STRONG>Please send me a&nbsp;solution for this.</STRONG></div>  <div><STRONG></STRONG>&nbsp;</div>  <div><STRONG>Thanks in advance</STRONG></div>  <div><STRONG></STRONG>&nbsp;</div>  <div><STRONG>Vikash
 Kumar</STRONG></div>  <div>&nbsp;</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>