>Pablo,
>
>Thanks for the reply, Pablo, It did close the excell application after it opened ones, Is there any code that it doesn't really open the excell at all.
>
>Regards,
>
>Budianto
PMFJI - Try removing or commenting your line:
XLApp.Visible = .t.
You don't need two variables to reference the XLApp, just do:
XLApp = createObject('excel.application')