Function GetKmPath(strKmPath As String) As String
Dim varArr, strMyKM As String
Dim i As Integer
varArr = Split(strKmPath & "\", " ", -1)
For i = 0 To UBound(varArr)
strMyKM = strMyKM & Left(varArr(i), InStr(varArr(i), "\"))
Next
GetKmPath = Left(strMyKM, Len(strMyKM) - 1)
End Function