برای تایپ عدد ساعت و درج ":" بصورت خودکار کدهای ذیل را به ماکرو اضافه کنید
کد PHP:
Private Sub TextBox2_Change()
If Len(TextBox2.Value) = 4 And IsNumeric(TextBox2.Value) Then
TextBox2.Value = Left(TextBox2.Value, 2) & ":" & Right(TextBox2.Value, 2)
End If
End Sub
Private Sub TextBox3_Change()
If Len(TextBox3.Value) = 4 And IsNumeric(TextBox3.Value) Then
TextBox3.Value = Left(TextBox3.Value, 2) & ":" & Right(TextBox3.Value, 2)
End If
End Sub
علاقه مندی ها (Bookmarks)