How to get User Name? - InfoPath Dev Sign in | Join | Help in General InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » General » How to get User Name? How to get User Name? Last post 06-30-2006 04:09 AM by Shiva. 2 replies. Page 1 of 1 (3 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 06-26-2006 06:15 AM liorlankri Joined on 02-27-2005 Posts 205 How to get User Name? Reply Contact I try this code (in VBscript):Sub XDocument_OnLoad(eventObj)Dim xx= Environment.UserNameEnd subit's not work (error of "Object requierd:Environment")What is the problem?? 06-26-2006 06:57 AM In reply to madhuri Joined on 07-18-2005 India Posts 216 Re: How to get User Name? Mark as Not AnswerMark as Answer... Reply Contact HiCheck out this link.http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=831&SearchTerms=user,name,in,vbscriptthis might help you. Madhurihttp://www.ggktech.com 06-30-2006 04:09 AM In reply to Shiva Joined on 04-15-2005 India Posts 694 Re: How to get User Name? Mark as Not AnswerMark as Answer... Reply Contact Hi,Change your line code as below then you get the user namex = Environment.UserName()Hope this helps you Shiva / http://www.ggktech.com Page 1 of 1 (3 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.