ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   remove close button (https://www.excelbanter.com/excel-programming/274748-re-remove-close-button.html)

Dan E[_2_]

remove close button
 
Josh,

You can't, but . . .
If you add the following code

Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
If CloseMode = vbFormControlMenu Then Cancel = True
End Sub

It won't work

Dan E

"Josh Ashcraft" wrote in message ...
how do i remove the close button (X) from the top of a
userform?

Thanks,
Josh





All times are GMT +1. The time now is 03:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com