I have a spreadsheet (macro enabled ) mounted on a sharepoint for multiple user access in centralized location.
However the macro doesn't get kicked off when opening the excel online,but the workaround for this is to open in excel mode which made the macro execute.
can anyone help me with a code to find the logged in user of sharepoint as soon as the sheet is opened?
I can add that to the code in the workbook open activity.
I tried using the Environ$("Username")
,but this is not showing me the value that I am expecting as this shows the username of my laptop than the user logged in on the sharepoint.
Basically no matter what the login of the machine where the sharepoint is used,i would like to get the sharepoint logged in user name which could be a different(like my scenario)?