Rad,

I realize this was probably just an example... but please include your path selections, DIMs, UDFs, etc, when posting code.

$MSOdir means nothing as is. The code also is missing Endselect, etc...

Just don't want others to come by and think this is complete working code, and then complain why such and such is not working.