View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Dan E[_2_] Dan E[_2_] is offline
external usenet poster
 
Posts: 102
Default 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