I know how to use VBA to run a python script through cmd, and I know how to use VBA to open IDLE, but is it possible to make a module in VBA that will open a python script in IDLE and automatically run that python script? Here's my code for opening IDLE via VBA and cmd (but it doesn't run the script):
Sub runidlefrompython()
Dim args As String
args = "C:\users\opera\AppData\Local\Programs\Python\Python36\Lib\idlelib\idle.py"
Shell "cmd.exe /S /K" & "C:\Users\opera\AppData\Local\Programs\Python\Python36\python.exe" & " " & args & " -r " & "C:\PythonPrograms\Hello.py", vbNormalFocus
End Sub