imho, i think all local variables should have to be dimmed locally. if they are not - the UDF really isn't self-contained - plus lets face it, Brians UDF will probably go straight into the UDF library - this is one of the happy side-effects of playing a game like this.

just food for thought. no biggy