ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Use the X button on a userform (https://www.excelbanter.com/excel-discussion-misc-queries/26253-use-x-button-userform.html)

Greg B

Use the X button on a userform
 
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



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

"Greg B" a écrit dans le message de news:
...
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





Greg B

Thanks for that exactly what I needed

Greg
"papou" wrote in message
...
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

"Greg B" a écrit dans le message de news:
...
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







papou

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

Cordially
Pascal

"Greg B" a écrit dans le message de news:
...
Thanks for that exactly what I needed

Greg
"papou" wrote in message
...
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

"Greg B" a écrit dans le message de news:
...
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










All times are GMT +1. The time now is 06:54 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com