'¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Private Function HighestPathBranch(ByVal strPath As String) As String
'______________________________________________________________________
' Returns the highest level folder of a path string
Dim strPS As String, varParts As Variant
strPS = Application.PathSeparator
If Right(strPath, 1) = strPS Then strPath = Left(strPath, Len(strPath) - 1)
varParts = Split(strPath, strPS)
HighestPathBranch = varParts(UBound(varParts))
End Function