A lancing device for ejecting a lancet having a pricking element protruding therefrom along an ejection axis is provided. The lancing device includes a front cap having an opening facing against an object to be pricked, a lancet holder slideable between a cocked position and a pricking position, and a safety switch moveable between a safety position and a passing position, wherein the pricking element extends beyond the opening when the lancet is ejected the safety switch prevents the lancet holder form being cocked when the safety switch is in the safety position, and the safety switch allows the lancet holder to be cocked and moved when the safety switch is in the passing position.