'efface ce qui est en rouge
Sub efface()
    Dim cel As Range
    With ActiveSheet.UsedRange
        For Each cel In .Cells
            If cel.Font.Color <> vbBlack Then cel.Value = ""
        Next
        .Font.Color = vbBlack
    End With
End Sub
Sub Comble_les_blancs()
    Dim lig&, c&, Nom$
    With ActiveSheet.UsedRange
        'le premier dossier  en colonne 1
        For i = 3 To .Cells(.Cells.Count).Row
            .Cells(i, 1) = .Cells(2, 1)
            .Cells(i, 1).Font.Color = vbRed
        Next
        'les dossier manquant dans le tableau
        For c = 2 To 6
            Nom = ""
            For lig = 2 To .Cells(.Cells.Count).Row
                If .Cells(lig, c) <> "" Then
                    Nom = .Cells(lig, c)
                Else
                    If .Cells(lig, c - 1) = Cells(lig - 1, c - 1) And .Cells(lig, c - 1) <> "" Then
                        .Cells(lig, c) = Nom
                        .Cells(lig, c).Font.Color = vbRed
                    End If
                End If
            Next
        Next
    End With
End Sub
'maintenant on peut lire ligne par ligne  et construire les dossiers et sous dossiers
'dans une boucle avec un test dir a chaque fois
Sub createfolder()
    Dim Tablo, i&, c&, chemin$
    Tablo = ActiveSheet.UsedRange.Value
    For i = 2 To UBound(Tablo)
        chemin = ThisWorkbook.Path 'adapter la racine ICI
        For c = 1 To UBound(Tablo, 2)
            If Tablo(i, c) <> "" Then chemin = chemin & "\" & Tablo(i, c)
            'If Dir(chemin, vbDirectory) = "" Then MkDir chemin     ' ligne Ă  debloquer
        Next
        Debug.Print chemin
    Next
End Sub