Hey Gaven,

Have not tested your code, but the idea is good.

Why did you post here in Scripts though? It looks like you should have posted in the UDF forum instead.

Is there a reason why you posted to scripts instead?