This Access Excel tutorial explains how to use Scripting.Dictionary in VBA to store unique array item.
You may also want to read:
Access Excel VBA Array
Remove duplicates in text using Dictionary
Access Excel VBA Scripting.Dictionary to store unique array item
An associative array, map, symbol table, or dictionary is an abstract data type composed of a collection of (key, value) pairs, such...