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.
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?
精彩评论