Bonjour Isabelle ,
Très gentil de ta part, tu m'as donné une bonne piste.
Je suis arrivé à mes fins, en remodelant ton code ainsi
repsource = ThisWorkbook.Path
repMaitre = Left(repsource, Len(repsource) - 2)
Workbooks.Open Filename:=repMaitre & "\" & "Maitre.xlsm"
Encore merci
Bonne journée
edit: j'ai trouvé cette fonction de BrunoM45, ça pourrait servir
Function DossierParent(sPath As String)
' Vérifier la construction du chemin
If Right(sPath, 1) = "\" Then sPath = Left(sPath, Len(sPath) - 1)
' Dossier parent = chemin avant le dernier slash
DossierParent = Left(sPath, InStrRev(sPath, "\"))
End Function
Sub UtiliserFonction()
MonCheminParent = DossierParent(Thisworkbook.Path)
End Sub