Ramsay bought a commission on the outbreak of war in 1793 and served in Holland, where he was wounded. He was stationed in Ireland in 1798, married in Edinburgh in 1800 and proceeded to Egypt, where he was again wounded at the battle of Alexandria, 13 Mar. 1801. Later in the year John Ramsay of Ochtertyre met him when he visited the family of a close friend who had died in the battle:
My namesake is a very sensible, well behaved young man who in a short time has seen a great deal of service and much of life and death which will afford him ample matter for discourse many years hence.
A visitor to Kelly, where he carried out extensive improvements, described him in 1806 as ‘a clever and sensible young fellow’.
He was put up for Aberdeen Burghs in 1806 by his brother William Maule, a devoted Foxite, who commanded the votes of Brechin and Arbroath. On 24 Sept. 1806 Maule solicited Lord Grenville’s support, observing that his brother’s success would ‘give additional support to your lordship and your colleagues in office’.
On 30 Dec. 1806 Maule told William Adam that Ramsay, who was ‘getting better but slowly’, would be unable to attend the opening of Parliament,
Ramsay, who seems to have made no further attempts to re-enter Parliament, died 28 June 1842.
