M
mr.Lionel
Guest
Bonjour,
Depuis la ré-installation de mon ordinateur, j'ai un petit problème sur mon application du genre :
"Erreur d'éxécution 458" et bug.
Mon code
Problème sur la ligne : "If tableau(x) <> ThisWorkbook.Name Then", je ne comprends pas.
Je vous remercie de vos explications ou corrections
Cordialement,
Lionel
Depuis la ré-installation de mon ordinateur, j'ai un petit problème sur mon application du genre :
"Erreur d'éxécution 458" et bug.
Mon code
HTML:
Sub chercheFichiersFermesV03()
Dim x As Integer, nbFichiers As Integer, Y As Integer
Dim tableau() As String
Dim Direction As String
Application.ScreenUpdating = False
Direction = Dir("D:\DEVIS\*.xls")
Do While Len(Direction) > 0
nbFichiers = nbFichiers + 1
ReDim Preserve tableau(1 To nbFichiers)
tableau(nbFichiers) = Direction
Direction = Dir()
Loop
If nbFichiers > 0 Then
For x = 1 To nbFichiers
If tableau(x) <> ThisWorkbook.Name Then ****PROBLEME****
Y = Y + 1
etc .....
Problème sur la ligne : "If tableau(x) <> ThisWorkbook.Name Then", je ne comprends pas.
Je vous remercie de vos explications ou corrections
Cordialement,
Lionel