yes he did.
actually, he forgot to even dim anything in there.

so, once you call the function the memory is reserved until script execution stops.

all vars should be dimmed in all UDFs. specially this one as it uses varnames that can occur in the main script too.
_________________________
!

download KiXnet