Possible bug? xlwings cannot run an Excel macro? [duplicate]
问题 This question already has answers here : How do I call an Excel macro from Python using xlwings? (3 answers) Closed 3 years ago . I am having a problem getting xlwings to run a macro from Python. Despite following the code from xlwings documentation, I cannot get xlwings to execute an Excel macro. For instance, in Excel workbook named "Book.xlsm": ' in Excel workbook Book.xlsm Sub Test() Set ws = Worksheets("ABC") ws.Range("A1").Value = 10 End Sub This macro runs OK within Excel. But when I