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.

Pᴇʜ
  • 56,719
  • 10
  • 49
  • 73
Maxcc0
  • 49
  • 1
  • 2
  • 11
  • 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. – John Coleman Nov 15 '22 at 11:05
  • 1
    Always helps to include your code when posting. – Tim Williams Nov 15 '22 at 16:55
  • 1
    https://stackoverflow.com/a/73564937/478884 – Tim Williams Nov 15 '22 at 17:03

0 Answers0