Anh ơi Cho em hỏi tý ạ. Em dùng hàm noi chuỗi và giờ em muốn thêm chức năng chỉ nối những ô hiển thị (giống hàm SUBTOTAL chỉ cộng nhưng ô hiển thị ) thì làm thế nào ah. Thank anh nhiều. Đoạn code
ah.
Function NoiChuoi(chuoi As Range, kytu As String) As String
Dim strResult As String
strResult = ""
Dim iCount As Integer
iCount = 0
For Each Item In chuoi.Cells
iCount = iCount + 1
If iCount < chuoi.Cells.Count Then
strResult = strResult & Item.Value & kytu
Else
strResult = strResult & Item.Value
End If
Next
NoiChuoi = strResult
End Function