Cuando lanzo la exportacion, al final termino con:
Código PHP:
If Not wsheet Is Nothing Then
wsheet = Nothing
End If
If Not wbook Is Nothing Then
wbook = Nothing
End If
If Not wapp Is Nothing Then
wapp.Workbooks.Close()
wapp.Quit()
wapp = Nothing
End If
Llevo todo el día intentando solucionarlo y no hay manera.
Gracias por adelantado.