thierry henry
Thành viên mới

- Tham gia
- 11/6/18
- Bài viết
- 49
- Được thích
- 4
đây là code được em ghi bằng cách chạy macros :
Sub Macro2()
Range("O2").Select
Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlLessEqual, _
Formula1:="=$J$2*50/100"
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
With Selection.FormatConditions(1).Interior
.PatternColorIndex = xlAutomatic
.Color = 255
.TintAndShade = 0
End With
Nhưng làm thế nào để nó tự động chạy hàng loạt từ O2 đến O10000
em cảm ơn
Sub Macro2()
Range("O2").Select
Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlLessEqual, _
Formula1:="=$J$2*50/100"
Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
With Selection.FormatConditions(1).Interior
.PatternColorIndex = xlAutomatic
.Color = 255
.TintAndShade = 0
End With
Nhưng làm thế nào để nó tự động chạy hàng loạt từ O2 đến O10000
em cảm ơn