Have the name of the current Windows user on a printed copy

Started by swissis, August 27, 2014, 08:29:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

swissis

I would like to know how i can add a label or shape that shows the name on the current windows user when the document is printed
the available user defined fields are only document related (or not)

Yacine

Yacine

AndyW

Using the following VBA code will give you the current user name that you could use to populate a shape.

Environ("UserName")
Live life with an open mind