I didn't think this was 'special' enought to be a UDF...

code:

$keyarray=split("$labelkey","\")
for $loop=0 to ubound($keyarray)
$labelpath=$labelpath+$keyarray[$loop]+"\"
if KEYEXIST("$labelpath")=0
$=addkey("$labelpath")
endif
next


_________________________
How to ask questions the smart way <-----------> Before you ask