Paste a HTML table into Excel, how to keep the line break in cell

前端 未结 5 973
梦谈多话
梦谈多话 2021-02-12 12:08

I have a simple html table, for example, just one cell, but when I copy the dom node, and paste it into excel, it will be recognize as two rows, How to make Excel get the correc

5条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-12 13:00

    I usually face this issue as i have to download excel files from a site which are actually html files wrapped in table tag with xls extension Wherever br tag is in cell, a new row is created. So, i created one small vbscript which replaces br tag with comma and then i open the file in excel. It works for me well.

提交回复
热议问题