I have evaluated your scenario/ case using your template file and sample code. I got an issue for the conditionally formatted cells while saving to HTML file format. Could you confirm that you find this issue. After your confirmation, we will log a ticket for your issue into our database for our product team’s investigation.