I have three (3) different frames in same user form. I can successfully run below message box within the same frame.
However If I skip to other frames and click a text box, then message box appears twice?
*************************
Private Sub TextBox1_BeforeUpdate(ByVal Cancel As MSForms.ReturnBoolean)
If Len(TextBox1) > 0 And IsNumeric(TextBox1) And TextBox1.Value > 0 Then
ComboBox6.Clear
Me.ComboBox6.Enabled = True
ComboBox6.AddItem "Option01"
ComboBox6.AddItem "Option02"
ComboBox6.AddItem "Option03"
Else
MsgBox "Enter a numeric value or a value greater than zero...", vbInformation, "MyBrand"
Cancel = True
TextBox1.Text = ""
Me.ComboBox6.Enabled = False
End If
End Sub
*************************
Note: ComboBox6 will be conditionally available when text box providing correct entry.
Thanks for help
However If I skip to other frames and click a text box, then message box appears twice?
*************************
Private Sub TextBox1_BeforeUpdate(ByVal Cancel As MSForms.ReturnBoolean)
If Len(TextBox1) > 0 And IsNumeric(TextBox1) And TextBox1.Value > 0 Then
ComboBox6.Clear
Me.ComboBox6.Enabled = True
ComboBox6.AddItem "Option01"
ComboBox6.AddItem "Option02"
ComboBox6.AddItem "Option03"
Else
MsgBox "Enter a numeric value or a value greater than zero...", vbInformation, "MyBrand"
Cancel = True
TextBox1.Text = ""
Me.ComboBox6.Enabled = False
End If
End Sub
*************************
Note: ComboBox6 will be conditionally available when text box providing correct entry.
Thanks for help