Chào các anh, chị trên diễn đàn !
Đổi sự kiện Private Sub Worksheet_Change(ByVal Target As Range) thành sự kiện Private Sub CommandButton1_Click()
Ở đoạn code sau thì viết lại như thế nào ?
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Union(Range("H3:H3"), Range("G4:G4"), Range("O3:O3"), Range("N4:N4"), Range("B10:B19")), Target) Is Nothing Then
Application.EnableEvents = False
Target.Value = Application.Proper(Target.Value)
Application.EnableEvents = True
End If
End Sub
Cám ơn các anh chị nhiều !
Thân chào !
Đổi sự kiện Private Sub Worksheet_Change(ByVal Target As Range) thành sự kiện Private Sub CommandButton1_Click()
Ở đoạn code sau thì viết lại như thế nào ?
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Union(Range("H3:H3"), Range("G4:G4"), Range("O3:O3"), Range("N4:N4"), Range("B10:B19")), Target) Is Nothing Then
Application.EnableEvents = False
Target.Value = Application.Proper(Target.Value)
Application.EnableEvents = True
End If
End Sub
Cám ơn các anh chị nhiều !
Thân chào !