Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
In my calculations at a certain time occurs a pop-up window with a specific question:
Is it possible to create a pop-up window like the following type (answer "Yes" must return "1" and "No" return "0" into variable "Question")?
Solved! Go to Solution.
Thank you, Richard!
So the script code should look like this:
Yes. The key points are that the MsgBox must be called as a function, with the arguments in parentheses, so that it can return a value, and that magic number, "36". The number determines the appearance of the MsgBox, in this case with "Yes" and "No" buttons, and a question mark icon.