0

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.

3
  • 2
    Can 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. Commented Nov 15, 2022 at 11:05
  • 1
    Always helps to include your code when posting. Commented Nov 15, 2022 at 16:55
  • 1
    stackoverflow.com/a/73564937/478884 Commented Nov 15, 2022 at 17:03

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.