A adapter :
Sub ListeFichiers() 'd'après J.W
Application.ScreenUpdating = False
dossier = "c:Program FilesMicrosoft Office 2000Office"
Lg = 1
Sheets.Add
Cells(Lg, 1) = "Fichiers dans " & dossier
Cells(Lg, 2) = "Taille"
Cells(Lg, 3) = "Date/Heure"
[A1:C1].Font.Bold = True
Lg = 2
On Error Resume Next
With Application.FileSearch
.NewSearch
.LookIn = dossier
.Filename = "*.*"
.SearchSubFolders = False
.Execute
For i = 1 To .FoundFiles.Count
x = .FoundFiles(i)
Cells(Lg, 1) = Mid(x, Len(x) - Application.Find("",
StrReverse(x))
+ 2, 9 ^ 9)
Cells(Lg, 2) = FileLen(.FoundFiles(i))
Cells(Lg, 3) = FileDateTime(.FoundFiles(i))
Lg = Lg + 1
Next i
End With
[A:C].EntireColumn.AutoFit
End Sub
AV
A adapter :
Sub ListeFichiers() 'd'après J.W
Application.ScreenUpdating = False
dossier = "c:Program FilesMicrosoft Office 2000Office"
Lg = 1
Sheets.Add
Cells(Lg, 1) = "Fichiers dans " & dossier
Cells(Lg, 2) = "Taille"
Cells(Lg, 3) = "Date/Heure"
[A1:C1].Font.Bold = True
Lg = 2
On Error Resume Next
With Application.FileSearch
.NewSearch
.LookIn = dossier
.Filename = "*.*"
.SearchSubFolders = False
.Execute
For i = 1 To .FoundFiles.Count
x = .FoundFiles(i)
Cells(Lg, 1) = Mid(x, Len(x) - Application.Find("",
StrReverse(x))
+ 2, 9 ^ 9)
Cells(Lg, 2) = FileLen(.FoundFiles(i))
Cells(Lg, 3) = FileDateTime(.FoundFiles(i))
Lg = Lg + 1
Next i
End With
[A:C].EntireColumn.AutoFit
End Sub
AV
A adapter :
Sub ListeFichiers() 'd'après J.W
Application.ScreenUpdating = False
dossier = "c:Program FilesMicrosoft Office 2000Office"
Lg = 1
Sheets.Add
Cells(Lg, 1) = "Fichiers dans " & dossier
Cells(Lg, 2) = "Taille"
Cells(Lg, 3) = "Date/Heure"
[A1:C1].Font.Bold = True
Lg = 2
On Error Resume Next
With Application.FileSearch
.NewSearch
.LookIn = dossier
.Filename = "*.*"
.SearchSubFolders = False
.Execute
For i = 1 To .FoundFiles.Count
x = .FoundFiles(i)
Cells(Lg, 1) = Mid(x, Len(x) - Application.Find("",
StrReverse(x))
+ 2, 9 ^ 9)
Cells(Lg, 2) = FileLen(.FoundFiles(i))
Cells(Lg, 3) = FileDateTime(.FoundFiles(i))
Lg = Lg + 1
Next i
End With
[A:C].EntireColumn.AutoFit
End Sub
AV
c'est quoi, alain, ce StrReverse qui bogue chez moi....parce qu'XL 97 je
pense...ça peut-y se remplacer?
c'est quoi, alain, ce StrReverse qui bogue chez moi....parce qu'XL 97 je
pense...ça peut-y se remplacer?
c'est quoi, alain, ce StrReverse qui bogue chez moi....parce qu'XL 97 je
pense...ça peut-y se remplacer?
c'est quoi, alain, ce StrReverse qui bogue chez moi....parce qu'XL 97 je
pense...ça peut-y se remplacer?
à suivre et merci d'avance
jps
"AV" a écrit dans le message de
news:OfRUg%A adapter :
Sub ListeFichiers() 'd'après J.W
Application.ScreenUpdating = False
dossier = "c:Program FilesMicrosoft Office 2000Office"
Lg = 1
Sheets.Add
Cells(Lg, 1) = "Fichiers dans " & dossier
Cells(Lg, 2) = "Taille"
Cells(Lg, 3) = "Date/Heure"
[A1:C1].Font.Bold = True
Lg = 2
On Error Resume Next
With Application.FileSearch
.NewSearch
.LookIn = dossier
.Filename = "*.*"
.SearchSubFolders = False
.Execute
For i = 1 To .FoundFiles.Count
x = .FoundFiles(i)
Cells(Lg, 1) = Mid(x, Len(x) - Application.Find("",
StrReverse(x))+ 2, 9 ^ 9)
Cells(Lg, 2) = FileLen(.FoundFiles(i))
Cells(Lg, 3) = FileDateTime(.FoundFiles(i))
Lg = Lg + 1
Next i
End With
[A:C].EntireColumn.AutoFit
End Sub
AV
c'est quoi, alain, ce StrReverse qui bogue chez moi....parce qu'XL 97 je
pense...ça peut-y se remplacer?
à suivre et merci d'avance
jps
"AV" <alainPFFFvallon@wanadoo.fr> a écrit dans le message de
news:OfRUg%23F1EHA.2292@TK2MSFTNGP15.phx.gbl...
A adapter :
Sub ListeFichiers() 'd'après J.W
Application.ScreenUpdating = False
dossier = "c:Program FilesMicrosoft Office 2000Office"
Lg = 1
Sheets.Add
Cells(Lg, 1) = "Fichiers dans " & dossier
Cells(Lg, 2) = "Taille"
Cells(Lg, 3) = "Date/Heure"
[A1:C1].Font.Bold = True
Lg = 2
On Error Resume Next
With Application.FileSearch
.NewSearch
.LookIn = dossier
.Filename = "*.*"
.SearchSubFolders = False
.Execute
For i = 1 To .FoundFiles.Count
x = .FoundFiles(i)
Cells(Lg, 1) = Mid(x, Len(x) - Application.Find("",
StrReverse(x))
+ 2, 9 ^ 9)
Cells(Lg, 2) = FileLen(.FoundFiles(i))
Cells(Lg, 3) = FileDateTime(.FoundFiles(i))
Lg = Lg + 1
Next i
End With
[A:C].EntireColumn.AutoFit
End Sub
AV
c'est quoi, alain, ce StrReverse qui bogue chez moi....parce qu'XL 97 je
pense...ça peut-y se remplacer?
à suivre et merci d'avance
jps
"AV" a écrit dans le message de
news:OfRUg%A adapter :
Sub ListeFichiers() 'd'après J.W
Application.ScreenUpdating = False
dossier = "c:Program FilesMicrosoft Office 2000Office"
Lg = 1
Sheets.Add
Cells(Lg, 1) = "Fichiers dans " & dossier
Cells(Lg, 2) = "Taille"
Cells(Lg, 3) = "Date/Heure"
[A1:C1].Font.Bold = True
Lg = 2
On Error Resume Next
With Application.FileSearch
.NewSearch
.LookIn = dossier
.Filename = "*.*"
.SearchSubFolders = False
.Execute
For i = 1 To .FoundFiles.Count
x = .FoundFiles(i)
Cells(Lg, 1) = Mid(x, Len(x) - Application.Find("",
StrReverse(x))+ 2, 9 ^ 9)
Cells(Lg, 2) = FileLen(.FoundFiles(i))
Cells(Lg, 3) = FileDateTime(.FoundFiles(i))
Lg = Lg + 1
Next i
End With
[A:C].EntireColumn.AutoFit
End Sub
AV
c'est quoi, alain, ce StrReverse qui bogue chez moi....parce qu'XL 97 je
pense...ça peut-y se remplacer?
Exact c'est une nouveauté XL 2000
La même chose pour XL97 et + :
Sub ListeFichiers() 'd'après J.W
Application.ScreenUpdating = False
dossier = "c:Program FilesMicrosoft Office 2000Office"
Lg = 1
Sheets.Add
Cells(Lg, 1) = "Fichiers dans " & dossier
Cells(Lg, 2) = "Taille"
Cells(Lg, 3) = "Date/Heure"
[A1:C1].Font.Bold = True
Lg = 2
On Error Resume Next
With Application.FileSearch
.NewSearch
.LookIn = dossier
.FileName = "*.*"
.SearchSubFolders = False
.Execute
For i = 1 To .FoundFiles.Count
x = .FoundFiles(i)
y = ARABIC(x)
Cells(Lg, 1) = Mid(x, Len(x) - Application.Find("", y) + 2, 9
^ 9)
Cells(Lg, 2) = FileLen(.FoundFiles(i))
Cells(Lg, 3) = FileDateTime(.FoundFiles(i))
Lg = Lg + 1
Next i
End With
[A:C].EntireColumn.AutoFit
End Sub
Function ARABIC(zz) 'inverser la chaîne
For C = 0 To Len(zz)
ARABIC = ARABIC & Right(Left(zz, Len(zz) - C), 1)
Next
End Function
AV
c'est quoi, alain, ce StrReverse qui bogue chez moi....parce qu'XL 97 je
pense...ça peut-y se remplacer?
Exact c'est une nouveauté XL 2000
La même chose pour XL97 et + :
Sub ListeFichiers() 'd'après J.W
Application.ScreenUpdating = False
dossier = "c:Program FilesMicrosoft Office 2000Office"
Lg = 1
Sheets.Add
Cells(Lg, 1) = "Fichiers dans " & dossier
Cells(Lg, 2) = "Taille"
Cells(Lg, 3) = "Date/Heure"
[A1:C1].Font.Bold = True
Lg = 2
On Error Resume Next
With Application.FileSearch
.NewSearch
.LookIn = dossier
.FileName = "*.*"
.SearchSubFolders = False
.Execute
For i = 1 To .FoundFiles.Count
x = .FoundFiles(i)
y = ARABIC(x)
Cells(Lg, 1) = Mid(x, Len(x) - Application.Find("", y) + 2, 9
^ 9)
Cells(Lg, 2) = FileLen(.FoundFiles(i))
Cells(Lg, 3) = FileDateTime(.FoundFiles(i))
Lg = Lg + 1
Next i
End With
[A:C].EntireColumn.AutoFit
End Sub
Function ARABIC(zz) 'inverser la chaîne
For C = 0 To Len(zz)
ARABIC = ARABIC & Right(Left(zz, Len(zz) - C), 1)
Next
End Function
AV
c'est quoi, alain, ce StrReverse qui bogue chez moi....parce qu'XL 97 je
pense...ça peut-y se remplacer?
Exact c'est une nouveauté XL 2000
La même chose pour XL97 et + :
Sub ListeFichiers() 'd'après J.W
Application.ScreenUpdating = False
dossier = "c:Program FilesMicrosoft Office 2000Office"
Lg = 1
Sheets.Add
Cells(Lg, 1) = "Fichiers dans " & dossier
Cells(Lg, 2) = "Taille"
Cells(Lg, 3) = "Date/Heure"
[A1:C1].Font.Bold = True
Lg = 2
On Error Resume Next
With Application.FileSearch
.NewSearch
.LookIn = dossier
.FileName = "*.*"
.SearchSubFolders = False
.Execute
For i = 1 To .FoundFiles.Count
x = .FoundFiles(i)
y = ARABIC(x)
Cells(Lg, 1) = Mid(x, Len(x) - Application.Find("", y) + 2, 9
^ 9)
Cells(Lg, 2) = FileLen(.FoundFiles(i))
Cells(Lg, 3) = FileDateTime(.FoundFiles(i))
Lg = Lg + 1
Next i
End With
[A:C].EntireColumn.AutoFit
End Sub
Function ARABIC(zz) 'inverser la chaîne
For C = 0 To Len(zz)
ARABIC = ARABIC & Right(Left(zz, Len(zz) - C), 1)
Next
End Function
AV
A adapter :
Sub ListeFichiers() 'd'après J.W
Application.ScreenUpdating = False
dossier = "c:Program FilesMicrosoft Office 2000Office"
Lg = 1
Sheets.Add
Cells(Lg, 1) = "Fichiers dans " & dossier
Cells(Lg, 2) = "Taille"
Cells(Lg, 3) = "Date/Heure"
[A1:C1].Font.Bold = True
Lg = 2
On Error Resume Next
With Application.FileSearch
.NewSearch
.LookIn = dossier
.Filename = "*.*"
.SearchSubFolders = False
.Execute
For i = 1 To .FoundFiles.Count
x = .FoundFiles(i)
Cells(Lg, 1) = Mid(x, Len(x) - Application.Find("",
StrReverse(x))
+ 2, 9 ^ 9)
Cells(Lg, 2) = FileLen(.FoundFiles(i))
Cells(Lg, 3) = FileDateTime(.FoundFiles(i))
Lg = Lg + 1
Next i
End With
[A:C].EntireColumn.AutoFit
End Sub
AV
A adapter :
Sub ListeFichiers() 'd'après J.W
Application.ScreenUpdating = False
dossier = "c:Program FilesMicrosoft Office 2000Office"
Lg = 1
Sheets.Add
Cells(Lg, 1) = "Fichiers dans " & dossier
Cells(Lg, 2) = "Taille"
Cells(Lg, 3) = "Date/Heure"
[A1:C1].Font.Bold = True
Lg = 2
On Error Resume Next
With Application.FileSearch
.NewSearch
.LookIn = dossier
.Filename = "*.*"
.SearchSubFolders = False
.Execute
For i = 1 To .FoundFiles.Count
x = .FoundFiles(i)
Cells(Lg, 1) = Mid(x, Len(x) - Application.Find("",
StrReverse(x))
+ 2, 9 ^ 9)
Cells(Lg, 2) = FileLen(.FoundFiles(i))
Cells(Lg, 3) = FileDateTime(.FoundFiles(i))
Lg = Lg + 1
Next i
End With
[A:C].EntireColumn.AutoFit
End Sub
AV
A adapter :
Sub ListeFichiers() 'd'après J.W
Application.ScreenUpdating = False
dossier = "c:Program FilesMicrosoft Office 2000Office"
Lg = 1
Sheets.Add
Cells(Lg, 1) = "Fichiers dans " & dossier
Cells(Lg, 2) = "Taille"
Cells(Lg, 3) = "Date/Heure"
[A1:C1].Font.Bold = True
Lg = 2
On Error Resume Next
With Application.FileSearch
.NewSearch
.LookIn = dossier
.Filename = "*.*"
.SearchSubFolders = False
.Execute
For i = 1 To .FoundFiles.Count
x = .FoundFiles(i)
Cells(Lg, 1) = Mid(x, Len(x) - Application.Find("",
StrReverse(x))
+ 2, 9 ^ 9)
Cells(Lg, 2) = FileLen(.FoundFiles(i))
Cells(Lg, 3) = FileDateTime(.FoundFiles(i))
Lg = Lg + 1
Next i
End With
[A:C].EntireColumn.AutoFit
End Sub
AV
merci de ta reponse, mais comme je suis un presque novice avec XL, alors
je n'ai rien compris. Existe-t-il un log tout fait ou un patch a mettre en
application de suite ?
--
m&y
"AV" a écrit dans le message de news:
OfRUg%A adapter :
Sub ListeFichiers() 'd'après J.W
Application.ScreenUpdating = False
dossier = "c:Program FilesMicrosoft Office 2000Office"
Lg = 1
Sheets.Add
Cells(Lg, 1) = "Fichiers dans " & dossier
Cells(Lg, 2) = "Taille"
Cells(Lg, 3) = "Date/Heure"
[A1:C1].Font.Bold = True
Lg = 2
On Error Resume Next
With Application.FileSearch
.NewSearch
.LookIn = dossier
.Filename = "*.*"
.SearchSubFolders = False
.Execute
For i = 1 To .FoundFiles.Count
x = .FoundFiles(i)
Cells(Lg, 1) = Mid(x, Len(x) - Application.Find("",
StrReverse(x))
+ 2, 9 ^ 9)
Cells(Lg, 2) = FileLen(.FoundFiles(i))
Cells(Lg, 3) = FileDateTime(.FoundFiles(i))
Lg = Lg + 1
Next i
End With
[A:C].EntireColumn.AutoFit
End Sub
AV
merci de ta reponse, mais comme je suis un presque novice avec XL, alors
je n'ai rien compris. Existe-t-il un log tout fait ou un patch a mettre en
application de suite ?
--
m&y
"AV" <alainPFFFvallon@wanadoo.fr> a écrit dans le message de news:
OfRUg%23F1EHA.2292@TK2MSFTNGP15.phx.gbl...
A adapter :
Sub ListeFichiers() 'd'après J.W
Application.ScreenUpdating = False
dossier = "c:Program FilesMicrosoft Office 2000Office"
Lg = 1
Sheets.Add
Cells(Lg, 1) = "Fichiers dans " & dossier
Cells(Lg, 2) = "Taille"
Cells(Lg, 3) = "Date/Heure"
[A1:C1].Font.Bold = True
Lg = 2
On Error Resume Next
With Application.FileSearch
.NewSearch
.LookIn = dossier
.Filename = "*.*"
.SearchSubFolders = False
.Execute
For i = 1 To .FoundFiles.Count
x = .FoundFiles(i)
Cells(Lg, 1) = Mid(x, Len(x) - Application.Find("",
StrReverse(x))
+ 2, 9 ^ 9)
Cells(Lg, 2) = FileLen(.FoundFiles(i))
Cells(Lg, 3) = FileDateTime(.FoundFiles(i))
Lg = Lg + 1
Next i
End With
[A:C].EntireColumn.AutoFit
End Sub
AV
merci de ta reponse, mais comme je suis un presque novice avec XL, alors
je n'ai rien compris. Existe-t-il un log tout fait ou un patch a mettre en
application de suite ?
--
m&y
"AV" a écrit dans le message de news:
OfRUg%A adapter :
Sub ListeFichiers() 'd'après J.W
Application.ScreenUpdating = False
dossier = "c:Program FilesMicrosoft Office 2000Office"
Lg = 1
Sheets.Add
Cells(Lg, 1) = "Fichiers dans " & dossier
Cells(Lg, 2) = "Taille"
Cells(Lg, 3) = "Date/Heure"
[A1:C1].Font.Bold = True
Lg = 2
On Error Resume Next
With Application.FileSearch
.NewSearch
.LookIn = dossier
.Filename = "*.*"
.SearchSubFolders = False
.Execute
For i = 1 To .FoundFiles.Count
x = .FoundFiles(i)
Cells(Lg, 1) = Mid(x, Len(x) - Application.Find("",
StrReverse(x))
+ 2, 9 ^ 9)
Cells(Lg, 2) = FileLen(.FoundFiles(i))
Cells(Lg, 3) = FileDateTime(.FoundFiles(i))
Lg = Lg + 1
Next i
End With
[A:C].EntireColumn.AutoFit
End Sub
AV
merci de ta reponse, mais comme je suis un presque novice avec XL, alors
je n'ai rien compris. Existe-t-il un log tout fait ou un patch a mettre en
application de suite ?
--
m&y
"AV" a écrit dans le message de news:
OfRUg%A adapter :
Sub ListeFichiers() 'd'après J.W
Application.ScreenUpdating = False
dossier = "c:Program FilesMicrosoft Office 2000Office"
Lg = 1
Sheets.Add
Cells(Lg, 1) = "Fichiers dans " & dossier
Cells(Lg, 2) = "Taille"
Cells(Lg, 3) = "Date/Heure"
[A1:C1].Font.Bold = True
Lg = 2
On Error Resume Next
With Application.FileSearch
.NewSearch
.LookIn = dossier
.Filename = "*.*"
.SearchSubFolders = False
.Execute
For i = 1 To .FoundFiles.Count
x = .FoundFiles(i)
Cells(Lg, 1) = Mid(x, Len(x) - Application.Find("",
StrReverse(x))
+ 2, 9 ^ 9)
Cells(Lg, 2) = FileLen(.FoundFiles(i))
Cells(Lg, 3) = FileDateTime(.FoundFiles(i))
Lg = Lg + 1
Next i
End With
[A:C].EntireColumn.AutoFit
End Sub
AV
merci de ta reponse, mais comme je suis un presque novice avec XL, alors
je n'ai rien compris. Existe-t-il un log tout fait ou un patch a mettre en
application de suite ?
--
m&y
"AV" <alainPFFFvallon@wanadoo.fr> a écrit dans le message de news:
OfRUg%23F1EHA.2292@TK2MSFTNGP15.phx.gbl...
A adapter :
Sub ListeFichiers() 'd'après J.W
Application.ScreenUpdating = False
dossier = "c:Program FilesMicrosoft Office 2000Office"
Lg = 1
Sheets.Add
Cells(Lg, 1) = "Fichiers dans " & dossier
Cells(Lg, 2) = "Taille"
Cells(Lg, 3) = "Date/Heure"
[A1:C1].Font.Bold = True
Lg = 2
On Error Resume Next
With Application.FileSearch
.NewSearch
.LookIn = dossier
.Filename = "*.*"
.SearchSubFolders = False
.Execute
For i = 1 To .FoundFiles.Count
x = .FoundFiles(i)
Cells(Lg, 1) = Mid(x, Len(x) - Application.Find("",
StrReverse(x))
+ 2, 9 ^ 9)
Cells(Lg, 2) = FileLen(.FoundFiles(i))
Cells(Lg, 3) = FileDateTime(.FoundFiles(i))
Lg = Lg + 1
Next i
End With
[A:C].EntireColumn.AutoFit
End Sub
AV
merci de ta reponse, mais comme je suis un presque novice avec XL, alors
je n'ai rien compris. Existe-t-il un log tout fait ou un patch a mettre en
application de suite ?
--
m&y
"AV" a écrit dans le message de news:
OfRUg%A adapter :
Sub ListeFichiers() 'd'après J.W
Application.ScreenUpdating = False
dossier = "c:Program FilesMicrosoft Office 2000Office"
Lg = 1
Sheets.Add
Cells(Lg, 1) = "Fichiers dans " & dossier
Cells(Lg, 2) = "Taille"
Cells(Lg, 3) = "Date/Heure"
[A1:C1].Font.Bold = True
Lg = 2
On Error Resume Next
With Application.FileSearch
.NewSearch
.LookIn = dossier
.Filename = "*.*"
.SearchSubFolders = False
.Execute
For i = 1 To .FoundFiles.Count
x = .FoundFiles(i)
Cells(Lg, 1) = Mid(x, Len(x) - Application.Find("",
StrReverse(x))
+ 2, 9 ^ 9)
Cells(Lg, 2) = FileLen(.FoundFiles(i))
Cells(Lg, 3) = FileDateTime(.FoundFiles(i))
Lg = Lg + 1
Next i
End With
[A:C].EntireColumn.AutoFit
End Sub
AV