I
Iroel Perez
Hello there,
I have a VBA form I want to close at some point. I want the form to close
the same way it closes when you click on the [X] in the top right corner.
I've tried using a PostMessage(hWnd, WM_CLOSE, 0, 0) but this way it closes
but never calls the OnDestroy Event, and I need that.
Any help is appreciated.
Thanks in advance,
I. Perez
I have a VBA form I want to close at some point. I want the form to close
the same way it closes when you click on the [X] in the top right corner.
I've tried using a PostMessage(hWnd, WM_CLOSE, 0, 0) but this way it closes
but never calls the OnDestroy Event, and I need that.
Any help is appreciated.
Thanks in advance,
I. Perez