Bonjour,
j'ai une macro qui vise à verifier si presence ou non de fichier
pgaFileName = chemin & "\Projects_Library\" & Prj(j, 3) & "-" & Prj(j, 1) & "\Contracts\Grant Agreement - GAP-" & Project_Ref & ".pdf"
pgaFileExists = Dir(pgaFileName)
cela fonctionne bien
seulement voila pgaFileName pourrait désormais avoir diffèrent nom
pgaFileName = chemin & "\Projects_Library\" & Prj(j, 3) & "-" & Prj(j, 1) & "\Contracts\Grant Agreement - GAP-" & Project_Ref & ".pdf"
ou
pgaFileName = chemin & "\Projects_Library\" & Prj(j, 3) & "-" & Prj(j, 1) & "\Contracts\Grant Agreement-" & Project_Ref & "-" & Prj(j, 3) & ".pdf"
comment introduire cette notion de ou cela dans
pgaFileExists
merci par avance