B BASSDINGUE XLDnaute Occasionnel 9 Novembre 2009 #1 bonjour le forum j'ai un fichier qui ce trouve dans ThisWorkbook.Path & "\" comment puis je faire pour remonter dans cette arborescence pour aller chercher des infos dans un fichier situé dans un dossier en amont? merci et bonne journée a tous........et à toutes!
bonjour le forum j'ai un fichier qui ce trouve dans ThisWorkbook.Path & "\" comment puis je faire pour remonter dans cette arborescence pour aller chercher des infos dans un fichier situé dans un dossier en amont? merci et bonne journée a tous........et à toutes!
Pierrot93 XLDnaute Barbatruc 9 Novembre 2009 #2 Re : Remonter dans l'arborescence en vba Bonjour, pour le dossier parent, essaye peut être comme ceci : Code: Dim c As String c = Mid(ThisWorkbook.Path, 1, InStrRev(ThisWorkbook.Path, "\")- 1) bonne fin d'après midi @+ Edition : rajouté le -1 pour enlever le dernier "\" Vote positif 0 Vote négatif
Re : Remonter dans l'arborescence en vba Bonjour, pour le dossier parent, essaye peut être comme ceci : Code: Dim c As String c = Mid(ThisWorkbook.Path, 1, InStrRev(ThisWorkbook.Path, "\")- 1) bonne fin d'après midi @+ Edition : rajouté le -1 pour enlever le dernier "\"
B BASSDINGUE XLDnaute Occasionnel 9 Novembre 2009 #3 Re : Remonter dans l'arborescence en vba merci pierrot et bonne journée a toi aussi Vote positif 0 Vote négatif
J jonhson63 XLDnaute Nouveau 13 Avril 2011 #4 Re : Remonter dans l'arborescence en vba Merci à toi ce bout de code m'a servi Vote positif 0 Vote négatif