How to save XLSM file with Macro, using openpyxl

后端 未结 6 1369
一个人的身影
一个人的身影 2020-11-29 11:32

I have .xlsm file with a Macro function. I\'m loading it using openpyxl and write some data to the file and finally want t

6条回答
  •  死守一世寂寞
    2020-11-29 11:40

    it's better to use xlwings to work with xlsm documents. I have tested it.

    import xlwings as xw

    wb = xw.Book(DATA.xlsm)

提交回复
热议问题