I have this little script in VBA to fill fields with content type properties assigend on SharePoint.
Function SHAREPOINTPROPERTY(sPropertyName As String) As String
SHAREPOINTPROPERTY = Application.ThisWorkbook.ContentTypeProperties(sPropertyName)
End Function
This does not work, when i open files with Excel Online. For that reason I would like to convert this to a ExcelScript function which runs on open. Is this even possible and how would i approach this?
I've been looking at this but have not found much regarding my usecase.