ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Inserting User Name into a cell (https://www.excelbanter.com/excel-discussion-misc-queries/11377-inserting-user-name-into-cell.html)

Trish

Inserting User Name into a cell
 
I am setting up a tracking form, which will be accessed by
all staff members. If possible I would like the next cell
(log number) to recognise the computer user name. Can
anyone help please :-)

Bob Phillips

You need VBA. Create a sub with this code

Sub UserName()
ACtivecell.Offset(0,1).Value = Environ("username")
End Sub

and run it from the original cell.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Trish" wrote in message
...
I am setting up a tracking form, which will be accessed by
all staff members. If possible I would like the next cell
(log number) to recognise the computer user name. Can
anyone help please :-)





All times are GMT +1. The time now is 07:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com