I have got multiple sets of criteria I need to pass into a function in order to check if they exist inside a nested collection. In a similar way as the sumifs worksheet function works, where you enter an unlimited number of criteria ranges and specific criteria, can you do this for a function in VBA?
I was thinking something along the lines of:
Public Function findEntryByCriteria(col As Collection, ParamArray Criteria(Key as Integer, str as String)) as Collection
Is this possible? or would I simply need to allow for a number of optional arguments?