Sub Test()
Dim Pfad As Variant, Ueberordner As String
Dim x As Long
Pfad = ThisWorkbook.Path
Pfad = Split(Pfad, "\")
For x = LBound(Pfad) To UBound(Pfad) - 1
If x = 0 Then
Ueberordner = Pfad(x)
Else
Ueberordner = Ueberordner & "\" & Pfad(x)
End If
Next x
MsgBox Ueberordner
End Sub
lg Matthias
Sub Test()
Dim Pfad As Variant, Ueberordner As String
Dim x As Long
Pfad = ThisWorkbook.Path
Pfad = Split(Pfad, "\")
For x = LBound(Pfad) To UBound(Pfad) - 1
If x = 0 Then
Ueberordner = Pfad(x)
Else
Ueberordner = Ueberordner & "\" & Pfad(x)
End If
Next x
MsgBox Ueberordner
End Sub
lg Matthias