Any ideas how to turn off/disable the X (control box?) in the top right corner of a form in VBA? I know in VB you just turn of the control box property, but VBA doesn't seem to have it... (note, three .'s - happy???)
Printable View
Any ideas how to turn off/disable the X (control box?) in the top right corner of a form in VBA? I know in VB you just turn of the control box property, but VBA doesn't seem to have it... (note, three .'s - happy???)
Place the following in the form's QueryUnload event.
------------------Code:If UnloadMode = vbFormControlMenu Then
Cancel = True
End If
Marty
Hey! It works. Cool, thanks very much, Marty.