Possible to alter worksheet order in xlsxwriter?

前端 未结 3 829
傲寒
傲寒 2021-01-11 12:18

I have a script which creates a number of the following pairs of worksheets in order:

WorkSheet (holds data) -> ChartSheet using WorkSheet
3条回答
  •  半阙折子戏
    2021-01-11 12:41

    I'm the author of XlsxWriter. It is possible to do it but it isn't advisable.

    Each worksheet has an internal index which is used by Excel to track the relationship of different workbook objects.

    Sorting the worksheets might work in some simple cases but for more complex workbooks it could lead to problems.

提交回复
热议问题