k, you have additional quote:
$PrinterName"

remove it and that error is removed too [Wink]

then, this UDF seems to want to give all the parameters, otherwise it will error out too.
_________________________
!

download KiXnet