 In 1852, he was appointed Regius Professor of Chemistry at the University of Glasgow and remained in that post for the rest of his career.In 1872, Anderson was awarded a Royal Medal from the Royal Society "for his investigations on the organic bases of Dippells animal oil; on codeine; on the crystallized constituents of opium; on piperin and on papaverin; and for his researches in physiological and animal chemistry.