tag:blogger.com,1999:blog-28492262.post2082957419860204725..comments2023-12-27T22:22:25.151-08:00Comments on VBA Tips & Tricks: Disable Close button using Excel VBAUnknownnoreply@blogger.comBlogger2125tag:blogger.com,1999:blog-28492262.post-81315575964453305702011-02-16T16:51:48.184-08:002011-02-16T16:51:48.184-08:00Thank you very much, but it's not correct.
To ...Thank you very much, but it's not correct.<br />To disable (not delete):<br />EnableMenuItem hMenu, SC_CLOSE, FALSE<br />To enable:<br />EnableMenuItem hMenu, SC_CLOSE, TRUE<br /><br />DisableMenuItem deletes the menu item and then you can't reenable it.ELF_VIGOhttps://www.blogger.com/profile/16922527577617048818noreply@blogger.comtag:blogger.com,1999:blog-28492262.post-17278076238787148442009-07-13T05:55:40.936-07:002009-07-13T05:55:40.936-07:00Enable do not work. :(Enable do not work. :(Anonymousnoreply@blogger.com