I am trying to execute a python script from excel macro. I want to keep the command prompt open to see the messages. Right now it gets closed very quickly after the script executes. How can I keep the command prompt open even after the script is executed.
Asked
Active
Viewed 128 times
0
-
2Can you rewrite your Python script so that it prints to a file rather than the command prompt? A standard way to keep a command prompt open for a Python script is to put something like `input()` at the bottom of the script, but depending on how you are invoking the script from VBA, that might block the VBA program. – John Coleman Nov 15 '22 at 11:05
-
1Always helps to include your code when posting. – Tim Williams Nov 15 '22 at 16:55
-
1https://stackoverflow.com/a/73564937/478884 – Tim Williams Nov 15 '22 at 17:03