the first portion of my script prompts the user to select 'Y' and 'By' variables. It then outputs a datatable (lets call it "dt2").
the second half of the code relies on that datatable (dt2) that was generated after the user makes the selections and clicks OK.
The problem I have is that the code continues to run once the window appears and is waiting for the user input.... so the 2nd half of the code has no datatable (dt2) to use so it doesn't output anything...
i saw i can use wait( ), but this relies on a time value(in seconds), and I would like to script this so it doesnt continue until the user input is given in the first half of the code (thus generating the necessary datatable for the 2nd half of the code to execute).
thanks in advance for any help/advice!!