jsampsonyyyyy Posted April 2, 2021 Report Share Posted April 2, 2021 In the "Dialogs" section there is a procedure "Text Box Display" which puts up a text box to show console output from a Python program that my macro runs. When my macro ends, a text box comes up with nothing in it except an "OK" box to click on to close it. Is there a command to close the box automatically or not to show it if there is nothing in it? Quote Link to comment Share on other sites More sharing options...
Cory Posted April 2, 2021 Report Share Posted April 2, 2021 Direct the console output to a variable and evaluate that variable with an "If" condition. If it's not blank, then show the text box. Quote Link to comment Share on other sites More sharing options...
rberq Posted April 2, 2021 Report Share Posted April 2, 2021 The dropdown in Text Box Display has an option to close the text box. When you select Close, just make sure that "Header" matches the original Display. Quote Link to comment Share on other sites More sharing options...
jsampsonyyyyy Posted April 3, 2021 Author Report Share Posted April 3, 2021 Many thanks - these are just what I needed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.