question

JaimeAProfessionalInDisguise-4460 avatar image
0 Votes"
JaimeAProfessionalInDisguise-4460 asked CeasarChenMSFT-3458 edited

Who Clicked a Form Control

The full question was posted elsewhere:

https://answers.microsoft.com/en-us/msoffice/forum/all/who-clicked-a-checkbox-form-control/efb562a8-b805-44c3-841b-05e56673ab56

In summary, I want to make Excel check who clicked on a checkbox, and then return that user's name for use. The file has Co-authoring enabled and is uploaded to a SharePoint. I've tried 3 methods to get this information, none of which quite worked:

UserName = Environ$("UserName")
UserName = Application.Username
UserName = ActiveWorkbook.BuiltinDocumentProperties("Last Author")

They all seem to be determined partially based on who saved the document last. I made a work around, but now determining who is currently accessing a file is something that's relevant for another task I'm trying to automate. Does anyone have anything else I can try?

office-vba-devoffice-scripts-excel-dev
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, @JaimeAProfessionalInDisguise-4460
Since this question is related to Excel VBA and I am in charge of Office General, I will remove the office-excel-itpro tag. Thanks for your understanding.

0 Votes 0 ·

0 Answers