solrac_otos
Registered User.
- Local time
- Today, 00:28
- Joined
- Apr 4, 2014
- Messages
- 19
Hi there. I have a module that pulls the user name in the firstname.lastname format. This is the module (module name is fosUserName):
I what to add a a text box on the welcome screen that says something along the lines of Welcome firstname (from the firstname.lastname that the code above pulls) what would you like to do? I need some code that will get me all the characters left of the period that separates the firstname from the lastname.
Any help would be greatly appreciated.
-C.
Code:
Public Function GetUser() As String
Dim WNet As Object
Set WNet = CreateObject("WScript.Network")
GetUser = WNet.UserName
End Function
I what to add a a text box on the welcome screen that says something along the lines of Welcome firstname (from the firstname.lastname that the code above pulls) what would you like to do? I need some code that will get me all the characters left of the period that separates the firstname from the lastname.
Any help would be greatly appreciated.
-C.