How to get information about the SharePoint user for VBA

Dr R Combley - Staff 0 Reputation points
2024-05-08T16:55:34.8333333+00:00

Sorry if these are dumb questions, I’m a teacher not a professional.

I have a spreadsheet which will be accessed by students and teachers in a school. The workbook will be accessed via SharePoint. I want the workbook to open in a different way, depending on who is opening it. I will do his using some VBA code.

I asked on another forum for a VBA function that would return information about the SharePoint user. I was advised that there is no such function but that I could try using the SharePoint REST API. They advised that this forum would be a good place to ask how to get the information into the Workbook.

I have noticed that other applications that we launch through our SharePoint ask the user to choose their Google Workspace Account to identify themselves, would this be an easier option?

Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.