During his early career, Anderson taught at
Fettes College in
Edinburgh and at
Gordonstoun where he taught
Prince Charles and directed him as Macbeth in the school play. He moved back to Fettes (1966–1970) and then to be headmaster at
Abingdon School (1970–1975),
Shrewsbury School (1975–1980) and
Eton College (1980–1994) and he was rector of
Lincoln College, Oxford (1994–2000), when its undergraduate students included
Rishi Sunak. He was chairman of the
Heritage Lottery Fund (1998–2001) and provost of
Eton College (2000–2009). At Fettes, he was
Prime Minister Tony Blair's housemaster. Blair subsequently named Anderson in a 1997 advertising campaign run by the
Teacher Training Agency, entitled "No one forgets a good teacher". He was Headmaster of Eton while
David Cameron and
Boris Johnson were there, He retired as provost of Eton on 30 January 2009, and was succeeded by
William Waldegrave. ==Personal life==