>Thanks, but the delimiter the fields in my file is ";" and not ",", and with automation Excel can't open fine, without automation yes. Then i need know how pass the parameters.
It's not CSV (Comma Separated Values ) file than. Change file extension to .TXT and try
lcFileName = FULLPATH('myfile.txt')
oExcel.Workbooks.OpenText(lcFileName, xlWindows, 1, xlDelimited, xlDoubleQuote, .F., .F., .T.)
--sb--