How to read SharePoint Online (Office365) Excel files in Python with Work or School Account?

As suggested by Niels V try using the Office365-REST-Python-Client. The client implements the Sharepoint REST API. Here’s an example of what you are trying to do: from office365.runtime.auth.authentication_context import AuthenticationContext from office365.sharepoint.client_context import ClientContext from office365.sharepoint.files.file import File url=”https://yoursharepointsite.com/sites/documentsite” username=”yourusername” password = ‘yourpassword’ relative_url=”/sites/documentsite/Documents/filename.xlsx” This section is straight from the github README.md using the ClientContext … Read more

Using UNIQUE with non-adjecent columns on different sheets

Since finding the Union of several ranges is a quite usefull function on its own, I use a LAMBDA to do that. The output of that can then be passed to UNIQUE The Lambda, which I call, unimaginatively, UNION =LAMBDA(tabl1, tabl2, LET(rowindex, SEQUENCE(ROWS(tabl1)+ROWS(tabl2)), colindex, SEQUENCE(1,COLUMNS(tabl1)), IF(rowindex<=ROWS(tabl1), INDEX(tabl1,rowindex,colindex), INDEX(tabl2,rowindex-ROWS(tabl1),colindex) ) ) ) Then =UNIQUE(Union(tblFruits1[Name],tblFruits2[Name])) gives the … Read more

Send SMTP email using System.Net.Mail via Exchange Online (Office 365)

Fixed a few typos in the working code above: MailMessage msg = new MailMessage(); msg.To.Add(new MailAddress(“[email protected]”, “SomeOne”)); msg.From = new MailAddress(“[email protected]”, “You”); msg.Subject = “This is a Test Mail”; msg.Body = “This is a test message using Exchange OnLine”; msg.IsBodyHtml = true; SmtpClient client = new SmtpClient(); client.UseDefaultCredentials = false; client.Credentials = new System.Net.NetworkCredential(“your user … Read more