![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 13
|
Is there a way to make nformation in a textbox on a userform required?
Thanks in Adcance Wrecker |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sydney, Australia
Posts: 2,908
|
You can use the textbox's Exit event e.g.
Code:
Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
If Me.TextBox1.Text = "" Then
MsgBox "You must add a value to Textbox1"
Cancel = True
End If
End Sub
D |
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Posts: 13
|
Got it.... Thanks
Wrecker |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|