I am loading a file by giving the absolute path, the below code works fine:
excel = WIN32OLE::new('excel.Application')
workbook = excel.Workbooks.Open('C:\demo\mation.xls')
worksheet = workbook.Worksheets(1)
worksheet.Select
excel['Visible'] = true
workbook = excel.Workbooks.Open('C:\demo\mation.xls')
worksheet = workbook.Worksheets(1)
worksheet.Select
excel['Visible'] = true
I want to use the name of the file to open 'mation.xls', not the entire path 'C:\demo\mation.xls'.
Please send me a solution for this.
Thanks in advance
Vikash
Kumar
Heres a new way to find what you're looking for - Yahoo! Answers
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
