There is nothing wrong with a fasting person using cream or ointment for haemorrhoids
Question

Does using cream or ointment for haemorrhoids, whether inside or outside, in Ramadan break the fast and require the fast to be made up?.
Praise be to Allah.Using cream or ointment for haemorrhoids does not affect the fast. 
And Allah is the source of strength. May Allah send blessings and peace upon our Prophet Muhammad and his family and Companions. End quote. 
Standing Committee for Academic Research and Issuing Fatwas 
Shaykh ‘Abd al-‘Azeez ibn Baz, Shaykh ‘Abd al-‘Azeez Aal al-Shaykh, Shaykh ‘Abd-Allah ibn Ghadyaan, Shaykh Saalih al-Fawzaan, Shaykh Bakr Abu Zayd