I am trying to run Excels Solver add-in via pywin32 in python with:
import win32com.client
from win32com.client import constants as c
app = Dispatch("Excel.Application")
app.Visible = True
app.Workbooks.Open(r'C:\path\to\testsolver.xlsm')
app.Run("runsolver")
..but get the following error:
"Cannot run the macro 'runsolver'. The macro may not be available in this workbook or all macros may be disabled"