
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 14 Then
For Each ce In Range("a" & Target.Row & ":n" & Target.Row & "")
If IsNumeric(ce) And ce < 1 Or ce > 5 Then
MsgBox "Riga non conforme."
ce.Select
Exit Sub
End If
Next
Cells(Target.Row + 1, 1).Select
End If
End Sub
|
| scossa's web site |
| Se tu hai una mela, ed io ho una mela, e ce le scambiamo, allora tu ed io abbiamo sempre una mela per uno. Ma se tu hai un'idea, ed io ho un'idea, e ce le scambiamo, allora abbiamo entrambi due idee. (George Bernard Shaw) |
If IsNumeric(ce) And ce >= 1 And ce <= 5 Then
MsgBox ""
ElseIf LCase(ce) = "m" Or LCase(ce) = "f" Then
MsgBox ""
End If |
