How do i limit the entrees of a textbox to just numbers and a decimal piont ????
Try this: Code: Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii = Asc(".") Or KeyAscii = vbKeyBack Then Exit Sub If Not (IsNumeric(Chr(KeyAscii))) Then KeyAscii = 0 End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii = Asc(".") Or KeyAscii = vbKeyBack Then Exit Sub If Not (IsNumeric(Chr(KeyAscii))) Then KeyAscii = 0 End Sub
Forum Rules