[RESOLVED] return system logon name of user in vba
Is there anyway of returning the network logon name of a user using a macro.
I have a list of people who can authorise a user form but are required to input a password to cpmlete authorisation.
I want to then check this password against a password entered on an excel file that has been saved to that users own folder on the network and to which only they have access premission.
Thanks all.
Re: return system logon name of user in vba
Re: return system logon name of user in vba
Re: return system logon name of user in vba
Fantastic!
Never imagined it would be so simple........
Re: [RESOLVED] return system logon name of user in vba
Do I misunderstand? Or is Application.Username what you want...?
zaza
Re: [RESOLVED] return system logon name of user in vba
Thats the Office VBA username and not the Windows username. They are two different names I believe.
Re: [RESOLVED] return system logon name of user in vba
Like in Excel, that would be the File > Properties > Author property and not Windows logon username.
Re: [RESOLVED] return system logon name of user in vba
Ah. For all the people using my spreadsheet, these are one and the same...
zaza