Forum

Notifications
Clear all

Fill in 365 user name

2 Posts
2 Users
0 Reactions
94 Views
(@bcuz)
Posts: 2
Active Member
Topic starter
 

Hi there,

I'm trying to have Excel autofill a cell with the 365 user's name who opened the workbook. This is a workbook with co-authoring off, so each person opens Read-Only. Many sites say use the =USER() or =USERNAME() function, but that simply doesn't exist. There was another about using VBA to pull the username but that turns out to return my windows login name (first initial, last name) which isn't what I'm looking for either. Does Excel allow you to autopopulate a cell with the name of the 365 user account the workbook instance is opened by?

 

Thanks

Brian

 
Posted : 01/05/2024 1:47 pm
(@keebellah)
Posts: 373
Reputable Member
 

I don't remember USERNAME() or USER() to being  a function in Excel; it's a Windows setting

You will probably have to use a macro to retrieve the ENVIRONMENT("USERNAME")  or Application.User 

 
Posted : 03/05/2024 2:34 am
Share: