So I'm trying to apply a currency format to an HTML table so that when I open it in excel, it has currency formatting. Now when I do this inline, it works fine, for example:
<td style="mso-number-format:$\##\,\##\##0\.00">=(sum(n4:n50))</td>
however, I have to do this with multiple fields, so I would like to make it a reusable class.
<style>
.cf{
mso-number-format:$\##\,\##\##0\.00;
}
</style>
with cell type:
<td class="cf">=(sum(n4:n50))</td>
This method does not work, and for the life of me I do not know why. Can someone help this CSS newbie ?!
thank
Limey source
share