Python 使用openpyxl与excel加载项交互

Python 使用openpyxl与excel加载项交互,python,openpyxl,Python,Openpyxl,是否可以通过openpyxl使用excel加载项 我希望通过晨星直接excel加载项调用数据 请求被写成一个公式,例如“'=@MSTS(“F0GBR04V7X;FO”,“NAV_daily”,“29/03/2021”,“28/04/2021”)”,我可以通过在VBA中运行以下命令调用数据 Sub RefreshAddin Set cmd = Application.CommandBars("Cell").Controls("Refresh All"

是否可以通过openpyxl使用excel加载项

我希望通过晨星直接excel加载项调用数据

请求被写成一个公式,例如“'=@MSTS(“F0GBR04V7X;FO”,“NAV_daily”,“29/03/2021”,“28/04/2021”)”,我可以通过在VBA中运行以下命令调用数据

Sub RefreshAddin
    Set cmd = Application.CommandBars("Cell").Controls("Refresh All")
    cmd.Execute
End Sub