' invia per visualizzazione calcoli
Private Sub CommandButton1_Click()
UserForm2.Show
End Sub
' salva e chiude
Private Sub CommandButton2_Click()
Application.Quit
ActiveWorkbook.Save
ActiveWindow.Close
End Sub
' accetta solo numeri
Private Sub TextBox3_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
Const Numbers$ = "0123456789,"
If KeyAscii <> 8 Then
If InStr(Numbers, Chr(KeyAscii)) = 0 Then
KeyAscii = 0
End If
End If
End Sub
' accetta solo numeri
Private Sub TextBox4_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
Const Numbers$ = "0123456789,"
If KeyAscii <> 8 Then
If InStr(Numbers, Chr(KeyAscii)) = 0 Then
KeyAscii = 0
End If
End If
End Sub
' accetta solo numeri
Private Sub TextBox5_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
Const Numbers$ = "0123456789,"
If KeyAscii <> 8 Then
If InStr(Numbers, Chr(KeyAscii)) = 0 Then
KeyAscii = 0
End If
End If
End Sub
' accetta solo numeri
Private Sub TextBox6_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
Const Numbers$ = "0123456789,"
If KeyAscii <> 8 Then
If InStr(Numbers, Chr(KeyAscii)) = 0 Then
KeyAscii = 0
End If
End If
End Sub
' accetta solo numeri
Private Sub TextBox7_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
Const Numbers$ = "0123456789,"
If KeyAscii <> 8 Then
If InStr(Numbers, Chr(KeyAscii)) = 0 Then
KeyAscii = 0
End If
End If
End Sub |