He saw action during the Afghan Campaign and also served in Burma and on the Andaman Islands. He later joined the Highland Light Infantry, becoming commander of the 7th Volunteer Battalion of the Royal Scots. He retired from the Army in 1882, shortly after the death of his father, and took to working in the County of Midlothian, where he served as Deputy Lieutenant.