tracking using %username%

  • Thread starter Thread starter cindy
  • Start date Start date
C

cindy

Hi-
Is there a way to get the word tracking to use the
Network "Username" variable by using %username%?

thanks for your advice!
Cindy
 
Hi Cindy,

See the article “How to get the username of the current user” at:

http://word.mvps.org/FAQs/MacrosVBA/GetCurUserName.htm

But, instead of the example of how to call the function, use the following
code to set the name of the user in word to the information that the
runction returns:

Sub SetWordUserName()
Application.UserName = GetUserName
End Sub


--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top