I came across an interesting issue:
I have a userform with various comboboxes and text boxes and each of these boxes has this simple code:
(btw ChangesDetected is publicy declared as a boolean)![]()
Please Login or Register to view this content.
The code below executes once the userform is closed and if ChangesDetected = True then the code prompts the user with a message box.
Now comes the interesting part; if i close the userform via a custom close button that uses "unloadme" the code works fine, but if i close the userform via the the top right "X" the code will process the boolean variable. How do i know that the code is ignoring it? That;s because if i put a random message box at the beginning then if i click on the "X" the msgbox will show. For some reason the "X" is ignoring the boolean.![]()
Please Login or Register to view this content.
I would really appreciate any help on this.
Thanks in advance!
Bookmarks