The short and obvious answer is that they stopped using archers when they got guns, in the 16th century. But it's a bit more complicated than that. read more
The last recorded use of an archery unit in any significant conflict was during the English Civil War in 1642, and the last known use of a bow by anyone in a European war was by "Mad" Jack Churchill at Dunkirk in 1940. read more
Archery was more or less discarded for military use during the 16th century. Sword use continued well into World War One. The most famous sword of the period being the Model 1913 Cavalry Saber - Wikipedia which was designed in 1913. read more
Archers, whether on foot, in chariots or on horseback were a major part of most militaries until about 1500 when they began to be replaced by firearms, first in Europe, and then progressively elsewhere. Archery continues to be a popular sport; most commonly in the form of target archery, but in some places also for hunting. read more