Hello Jenny,
This error occurs with the Mac Office version. It does not allow VBA to import other libraries. The library in this case is the Scripting Runtime library of which the Dictionary is part.
I use the Dictionary more than a Collection object. The both work basically the same but the Dictionary has other features that the Collection does not have. These additional features make coding more complex data handling much easier.
Anyway, here is the workaround using a Collection object. Delete the old the macro then copy and paste this one in it's place.
Bookmarks