Returning HTML in in Calc

Hello,
I need to change both the text and the backround colour in a HTML field using a calculation so far I can do them separately so each piece of HTML works but I need to combine the 2 into 1.

Backround with

<html><table width="100%"><tr bgcolor="' + c + '"><td td height= "25"> </td></tr><table></html>'

Font With

'<html><font color="' + f + '">' + e + '</font></html>';

Thanks In advance.

Just paste the part inside the like this:

'<html><table width="100%"><tr bgcolor="' + c + '"><td td height= "25"><font color="' + f + '">' + e + '</font></td></tr><table></html>'

Hi,

Many Thanks for your reply, it now works well, but how would I lock the font type as at the moment when you switch forms the font changes.