I have installed PythonWin installed..
I can read and write to Excel from Python, not a problem. Not the usage I need.
All examples I have found are more complex than I need. Since, I’m moving away
from Excel, I need a half steps for testing.
Whats the simplest way to fire off python scripts from Excel. I dont need gui.
Usage: On open of xls excute python script. Nothing fancy.
Right now, I simply execute the scripts manually before opening xls.
Private Sub Workbook_Open()
MyPythonScript.pyw ' this is where scripts should go. just one is all I need.
End Sub
You can use Excel’s
Shellfunction*, e.g.You may need to change the path to the
pythonwexecutable; depending on your setup.