PDA

View Full Version : VBA to return ID of person logged on



Sir Babydum GBE
08-20-2007, 10:36 AM
Hi

How do I return the name of the person currently logged on in a message box?

Thanks

RichardSchollar
08-20-2007, 10:39 AM
Hi

One way:


MsgBox Environ("UserName")

Richard

Sir Babydum GBE
08-29-2007, 12:35 PM
Sorry for not thanking you for this sooner!

Worked great.