T Tim Sep 24, 2004 #2 sal21 said: How to disable the close option with "X" in a msgbox? Click to expand... the following works for a userform... not sure if it would work for a msgbox: - Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) If CloseMode = vbFormControlMenu Then Cancel = True End Sub hth, tim
sal21 said: How to disable the close option with "X" in a msgbox? Click to expand... the following works for a userform... not sure if it would work for a msgbox: - Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) If CloseMode = vbFormControlMenu Then Cancel = True End Sub hth, tim