Use the X button on a userform

G

Greg B

I know how to disable the X button on a userform but I was wondering if
there was a possibility that when it is used that it opens the userform
splash?

Thanks in advance

Greg
 
P

papou

Hi Greg
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
If CloseMode <> 1 Then
Splash.Show
End If
End Sub

HTH
Cordially
Pascal
 
G

Greg B

Thanks for that exactly what I needed

Greg
papou said:
Hi Greg
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
If CloseMode <> 1 Then
Splash.Show
End If
End Sub

HTH
Cordially
Pascal
 
P

papou

Thanks for that exactly what I needed
My pleasure, I am glad for that ;-)

Cordially
Pascal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top