Just slide the switch and leave it. If you slide it and then slide it back, I guarantee the check engine light will stay on. The engine and key can be in the off position for this procedure.
If the light is still on, after you slide it to the opposite position that it is now, then that means it was not tripped by a mileage interval and that there is something wrong somewhere and you need to start troubleshooting to isolate the problem.