ok...
lets start with simple stuff.
before answering your question more thoroughly after getting my laptop plugged in, I will have to ask you to use the code tags ( when you are entering code, click the # sign).

it makes it way more readable for us all. thanks for your understanding.

and lastly, I do have an idea what your issue is, but you did not state any specific error. may I quess it is the printer connection part?

what is networkprinters()? sounds like an udf name but the UDF is not shown in your post.
_________________________
!

download KiXnet