His first major role was as Sheriff of Orkney and Shetland in 1801, but in 1809 he transferred to an equivalent post as Sheriff of Edinburgh, which he held until 1819.[3] He succeeded his father to the baronetcy in 1815.
Grant's Old and New Edinburgh tells us that he was present at the Great Edinburgh Fire of 1824, actively trying to extinguish the flames of the building on the Royal Mile at the head of Old Assembly Close as it was "the house of his birth".[5]
He died aged 73 at St Catherines, near Mortonhall in south Edinburgh on 18 October 1842.[3]
He is buried with his father and mother on the south-west corner of St Michael's church in Inveresk. The stone is modest.