Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I edit an excel file on onedrive using python?

I have been searching for hours trying to find out how I could edit an Excel file saved to OneDrive using python and have had no luck. Help if you know how/if it is possible.

like image 326
Jeremiah Trest Avatar asked Dec 31 '25 03:12

Jeremiah Trest


1 Answers

@JeremiahTrest Welcome to Stackoverflow. I don't think that's how OneDrive works. What I mean is, I don't think it's possible to directly edit a file that is saved to your OneDrive in the cloud with any language. What you would have to do is to get a copy of the file on the machine that is running the Python script, update the file on that machine and save it with the changes, then push the changed file to your OneDrive. I looked and found this SDK for Python that is meant to be able to help you interface with the OneDrive API. So, you would use this SDK to get the file from OneDrive, update the file locally, then use the SDK to push the changed file back out to OneDrive.

like image 103
Gharbad The Weak Avatar answered Jan 01 '26 19:01

Gharbad The Weak



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!