GetWindowsUserName() As String

Application object

Returns the name of the current Windows user— which is not necessarily the same as the current INVOICES user.

GetUserName

The Application object