Skip to content

Instantly share code, notes, and snippets.

View tks18's full-sized avatar
💻
Efficacious & Zealous 🤔

Sudharshan TK tks18

💻
Efficacious & Zealous 🤔
  • Deloitte
  • Bangalore, India
  • 05:31 (UTC +05:30)
  • X @shantk18
View GitHub Profile
@guwidoe
guwidoe / GetLocalOneDrivePath.bas.vb
Last active December 6, 2025 04:31
VBA Function to get the local path of a OneDrive/SharePoint synchronized Microsoft Office file
'Attribute VB_Name = "OneDrivePathConversion"
'
' Cross-platform VBA Function to get the local path of OneDrive/SharePoint
' synchronized Microsoft Office files (Works on Windows and on macOS) and
' Cross-platform VBA Function to get the OneDrive/SharePoint Url path (link)
' from a local path of a locally synced folder (Works on Windows and on macOS)
'
' Author: Guido Witt-Dörring
' Created: 2022/07/01
' Updated: 2025/06/02