Fleming was elected the Rector of the University of Edinburgh in 1951 .
In 1951 he was elected the Rector of the University of Edinburgh for a term of three years.  During World War I , Fleming witnessed the death of many soldiers from sepsis resulting from infected wounds .