Took out the line
code:
Dim $udfInDomainGroup[1]

and tidied up so that it doesnt redim one extra time and it all works [Big Grin]

Thanks for your time again