Is it possible to hide or disable the Excel 'Close' button (x) in the right upper corner?
(VBA, API or alike).
Is it possible to hide or disable the Excel 'Close' button (x) in the right upper corner?
(VBA, API or alike).
Why would you want to do that?
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
It's just idle curiosity. I know other ways to do this.
I woulod just cancel in the before close event, you can add an If statement to check first
Thank you, royUK!
I know this. But I need exactly what I wrote.
Hello 5631,
To hide the close "X" on a UserForm requires a macro that makes some API calls to modify the window's title bar. Here is the macro code. Place a call to the macro in the UserForm_Activate event procedure.
Sincerely,Please Login or Register to view this content.
Leith Ross
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks