Bạn giúp mình giải thích chi tiết về đoạn code bên dưới nha! Cảm ơn bạn nhiều!
Sub Loc()
[c7:c7000].SpecialCells(2).Offset(, -1) = "=COUNTIF(R7C7:RC7,RC7)"
[b7:b7000].AutoFilter: Selection.AutoFilter 1, 1
[b7].CurrentRegion.Copy
[l7].Select: ActiveSheet.Paste: Application.CutCopyMode = False
ActiveSheet.AutoFilterMode = False
[o7] = "=SUMIF(R7C7:R7000C7,RC17,R7C[-10]:R7000C[-10])"
[o7].Copy [o7].Resize(10000, 2)
Selection = Selection.Value
Union([b:b], [l:l]).Clear
[p
].Select
Selection.NumberFormat = "#,##0.00"
Selection.Copy
Range("P1
7000").Select
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
[p1].Select
End Sub