This way you can create an excel file from Html. And I found that many things are possible, such as adding images, formatting, etc. Only with some CSS settings.
However, what I'm trying to do now is get a small red triangular comment.
I created a clean excel file containing only a comment, but the generated html is a mess. And I'm sure a lot of this is superfluous. Has anyone done this or knows how I can make it work?
It would be nice if it were as simple as <td title="comment">text</td>
, but it is not.
EDIT: I have basic requirements for html to show a comment when loading in excel reduced to this ... I just need to see if I can crop vml to something simpler.
It looks like the link to the cell to which it is connected is as follows: 0 0
Now I just need to position it correctly, initially
I think this is the minimum, and I added a second comment, slightly modifying the html.
But, if you can help trim this further, let it be minimal, which would be very useful
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"> <body> <table> <tr> <td>cell 1</td> </tr> <tr> <td></td> <td></td> <td></td> <td>cell 3</td> </tr> </table> <div style='mso-element:comment-list'> <div style='mso-element:comment'> <div v:shape="_comment1" > This is a comment </div> <div v:shape="_comment2" > This is another comment </div> </div> </div> </body> </html>
source share