G
Guest
The Collection has an annoying feature where if you want to replace an
existing key, you will first have to remove it otherwise an error occurs.
So i was going to wrap the Collection and override the Add method to remove
the key from collection than delegate to the actual collection itself to
perform the add but doesn't seem to be as straight forward as initially
thought without writing lots of code to check for which option was/wasn't
specified in the new Add method before delegating it to the actual Collection.
Being new to VBA, is their some syntax to handle this optional paraments
passing, or anyone have a better way of going about doing this?
existing key, you will first have to remove it otherwise an error occurs.
So i was going to wrap the Collection and override the Add method to remove
the key from collection than delegate to the actual collection itself to
perform the add but doesn't seem to be as straight forward as initially
thought without writing lots of code to check for which option was/wasn't
specified in the new Add method before delegating it to the actual Collection.
Being new to VBA, is their some syntax to handle this optional paraments
passing, or anyone have a better way of going about doing this?