Problem : VBA – Dictionary Object 256 unique keys / items limit?

Problem : VBA – Dictionary Object 256 unique keys / items limit?

Hi everyone,

Just a simple question technical question here. In Excel 2002, when I store unique keys/items to the Dictionary object, it stops at 256. Unfortunately I have 268 unique values and I’m not sure maybe if there’s something wrong with my code or the data itself, or is it simply the Dictionary object’s limit. Can anyone confirm this? Thanks!


Solution: VBA – Dictionary Object 256 unique keys / items limit?

Silly me, Integer types go to 32,767! What you are experiencing is a limitation of the VBE debugger: it only shows the first 256 elements of any array, collection, or dictionary.