Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50079

Working with several Collection class modules

$
0
0
Hi everybody,

I have these two class modules -
cVendor - that takes details of each individual vendor and
cVendCol that can make a collection of cVendors.

the initial vendor data is date wise and get numbered as and when they come

For further work, i need to sort the vendors area wise, and take that info to other sheets. I have made 5 class modules suffixed with the zone names - cVendCol_North, cVendCol_South, cVendCol_East, cVendCol_West, cVendor_Central and made the collections area wise. So far, it is okay.

The process of further working in each sheet is the same with each of these classes. I am, at present writing the codes 5 times, one time for each collection class module, to work the info in each module.

If possible, i would like to write the processing code only once and make each class module work with these code in turn. I tried making a std collection of the modules. I tried making a class module which will accept a collection class as the input. But it is not working.

Is there a way out?

Thanks in advance.

Geetha

Viewing all articles
Browse latest Browse all 50079

Trending Articles