Muchas gracias por la función, yo también lo he intentado, todavía no estoy del todo satisfecho, pero estoy arreglándolo