disabling the 'cross' (one for VoG?)

  reddwarfcrew 20:58 16 Aug 2004
Locked

I've got a little VB code that pops up a user form when the file is opened.

Is there anyway to disable the user from being able to click the 'cross' and thus close the user form without filling it in?

Thanks.

  reddwarfcrew 21:10 16 Aug 2004

Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)


If CloseMode <> 1 Then Cancel = 1


MsgBox ("You must complete the form!!")


End Sub

  reddwarfcrew 21:11 16 Aug 2004

Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)


If CloseMode <> 1 Then Cancel = 1


MsgBox ("You must complete the form!!")


End Sub

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Alienware 17 R4 2017 review

These brilliant Lego posters show just what children's imaginations are capable of

Mac power user tips and hidden tricks

Comment réinitialiser votre PC, ordinateur portable ou tablette Windows ?