There is a way to remove all duplicates in array with VBA, also the first value. Just keeping the not Duplicated values
Example:
Array_1 ['pedro','maria','jose','jesus','pepe','pepe','jose']
Result:
Array_1 ['pedro','maria','jesus']
There is a way to remove all duplicates in array with VBA, also the first value. Just keeping the not Duplicated values
Example:
Array_1 ['pedro','maria','jose','jesus','pepe','pepe','jose']
Result:
Array_1 ['pedro','maria','jesus']
Here is another version:
Advantages:
Disadvantages:
Try this code:
Additional solution as
Filter
function doesn't care about 'exact match'. This new one requires reference to Microsoft Scripting Runtime in VBA project.How create a new A_temp1() without duplicates, using Filter() VBA function: