 He was Commissioner of visitation for Glasgow University in 1717 and 1718, and for St Andrews University in 1718.He was appointed auditor general of the Scottish Exchequer in 1720.Dalrymple died on 3 December 1721.