xin hoi mọi người, ko biết có ai biết thuật toán làm thế nào để loại bỏ những giá trị giống nhau trong một mảng không ạ. ví dụ: array(12,10,9,2,12,10,11,2) kết quả array(12,10,9,2,11)
Vì bạn hỏi về thuật toán: http://stackoverflow.com/questions/3350641/array-remove-duplicate-elements
http://stackoverflow.com/questions/15877273/vba-removing-duplicates-values-in-an-array-including-the-same-value
Trong trường hợo này mình cũng có câu hỏi là, nếu selection thuộc a1:a5 thì b1 = selection, end if thì code chổ if viết sao ạ Mình tính làm như sau: If column(selection)< 5 and row(selection)<1 then B1= selection End if K có máy tính để test Give me your comment