An injection device includes a housing; a receptacle for injection fluid; a dosing piston to press out the injection fluid; a feed part connected to the dosing piston via a first threaded connection; a slide having a thread of a second threaded connection; and, a setting part having a thread of a third threaded connection and configured to set an amount of injection fluid to be dispensed. The setting part moves in the distal direction by virtue of the third threaded connection when the amount of injection fluid to be dispensed is being set. The setting part can move in the proximal direction when the injection fluid is pressed out. A latching unit defines a latching position of the setting part and acts between the setting part and housing. Each latching position has an unequivocal rotational position of the setting part in relation to the housing assigned thereto.