This works:
Path = "c:\Python27\python.exe"
File = ThisWorkbook.Path & "\Positionly-API-Keyword-Script.py"
This does not work:
Path = "%systemdrive%\Python27\python.exe"
File = ThisWorkbook.Path & "\Positionly-API-Keyword-Script.py"
What gives?
I just want to make my macro more flexible so that it will always find Python 2.7 if it was installed in the default directory (which may or may not be C:)
Ideally I'd like to just variable/path it straight to Python to make it mich more flexible and rigorous in terms of error handling. I just don't know the VBA to do what I want!