Mike,
The dictionary obejct is part of the scripting object model. This can be accessed by adding a reference to your project to Microsoft Scripting Runtime (or scrrun.ddl in the System32 folder).
To solve the problem I think that toshesh needs to change the line
Code:
vendorList = getAllVendorName(vendorColumnNum)
to
Code:
Set vendorList = getAllVendorName(vendorColumnNum)
This is because you are assigning an object type with this command line and therefore the Set keyword is required.
As a separate point, the code written seems to be mixing early and late binding with reference to using the Scripting object model. As a general rule I would always stick to one or the other but the code should still work.
Maccas