Public Function ConvertOneDriveFoler(hUrl As String) As String
Dim sR1 As String
Dim sR2 As String
Dim sR3 As String
Dim sR4 As String
Dim sR5 As String
Application.Volatile True
If Left(hUrl, 8) = "https://" Then
sR1 = hUrl
sR1 = Replace(sR1, "https://d.docs.live.net/", "")
sR2 = sRight(sR1, "/")
sR3 = Environ("ONEDRIVE")
sR4 = sR3 & "\" & sR2
sR5 = Replace(sR4, "/", "\")
ConvertOneDriveFoler = sR5
Else
ConvertOneDriveFoler = hUrl
End If
End Function