Secret UserForm controls

Big Lar

Well-known Member
Joined
May 19, 2002
Messages
557
Double clicking on an invisible Label Unloads my UserForm<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
Rich (BB code):
Rich (BB code):
Private Sub Label63_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
Unload Me<o:p></o:p>
End Sub
<o:p></o:p>
<o:p></o:p>
I’d like to make this SHIFT+DblClick or some other key+DblClick.<o:p></o:p>
<o:p></o:p>
<o:p>Another idea is to enter a non-numeric code into a specific Textbox and then double click the invisible Label...hum...</o:p>
 
Last edited:

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
You could try
Code:
Private Sub Label63_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
If TextBox.##="some text string" Then
     Unload Me
End If
End Sub
Just replace ## with the specific text box and replace "some text string" with whatever you like.
But I don't know how you would do the first one.
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,673
Members
452,937
Latest member
Bhg1984

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top