A Microsoft file hosting and synchronization service.
Dear @Bob Menlove,
Good day, and thank you for reaching out to Q&A Forum. Based on your requirement, there are a few approaches available, but one of the simplest and most reliable methods is to use OneDrive sync together with Power Query in Excel.
First, ensure your OneDrive is synced to your computer. You can do this by selecting the OneDrive cloud icon in the system tray, opening Settings, and confirming that the folders you want are selected for sync.
Once that is set up, open Excel and go to Data > Get Data > From File > From Folder, then browse to your local OneDrive folder (typically under C:\Users\YourName\OneDrive or OneDrive – Company Name). After selecting the folder, choose Transform Data.
In Power Query, you will see columns such as Content, Name, Extension, Folder Path, Date modified, ... From here, you can remove any unnecessary columns (click the column header > Remove Columns) and rename the remaining ones to suit your needs, for example:
- Name > File Name
- Folder Path > Path
- Date modified > LastModified DateTime
If required, you may add additional columns (such as an ID), although that may involve a slightly different method.
Click Close & Load to put the list into an Excel sheet. This gives you a dynamic list, you can refresh it anytime (Data > Refresh All) to get the latest files.
I hope this information is helpful. Please try the above approach and let me know how it works on your side. If you have any questions or need further assistance, please feel free to share them in the comments so I can continue to support you. I'm looking forward to your reply.
If the answer is helpful, please click "Accept Answer" and kindly upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.