开发者

Using Python XLWT to set style to a range of cells (without merging or writing)

I want to add bold border around range of cells that includes table header and data (e.g. B2:G75) excluding borders b开发者_开发技巧etween cells. I know that I can make a bunch of styles for each corner of the table and apply them while writing data (checking first/last row and first/last item in row), but I assume this is a bad practice. write_merge won't help me either since it will merge cells.

Below you can find an example of what I want.

Using Python XLWT to set style to a range of cells (without merging or writing)

Is there a way to apply style to a range of cells using xlwt without merging or writing? Or should I switch to a different Excel library?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜