Hi,
So, the scenario that I have is that I'm looking to create a report within Excel so that individual staff members within my organisation can access the file and see their own data (time sheet and utilisation metrics, stuff like that). To that end, I've found some code that will allow a function to report on the individual's username when they log into the sheet, that being:
Public Function UserName()
UserName = Environ$("UserName")
End Function
At the moment, I've just got the function set up in cell A1 that updates when someone opens and enables the sheet.
However, I've a worry that in practice, that if one individual uses and saves the sheet, if someone else accesses sheet right after and doesnt enable content, the function wont have updated to this new user's ID and so the metrics being shown will remain as the first individuals.
Is there a way to remove this possible issue from occurring? Just to give a warning, I'm not the worst with Excel but I've limited knowledge of coding, so dumbed down explanations would be really welcome.
Thanks a lot
Chris
So, the scenario that I have is that I'm looking to create a report within Excel so that individual staff members within my organisation can access the file and see their own data (time sheet and utilisation metrics, stuff like that). To that end, I've found some code that will allow a function to report on the individual's username when they log into the sheet, that being:
Public Function UserName()
UserName = Environ$("UserName")
End Function
At the moment, I've just got the function set up in cell A1 that updates when someone opens and enables the sheet.
However, I've a worry that in practice, that if one individual uses and saves the sheet, if someone else accesses sheet right after and doesnt enable content, the function wont have updated to this new user's ID and so the metrics being shown will remain as the first individuals.
Is there a way to remove this possible issue from occurring? Just to give a warning, I'm not the worst with Excel but I've limited knowledge of coding, so dumbed down explanations would be really welcome.
Thanks a lot
Chris