Dim x , y As Single IfIsnumaric( Me.TextBox1.Text ) Then x = Me.TextBox1.Text y = 3 * x + 2 Label1.Text = y Else MsgBox(" يجب إدخال قيمة عددية") End If