Poids d'un fichier

Comment connaître la taille (le poids) d'un classeur excel par VBA ?

sub Taille()
 Dim Fichier As String
 Fichier = "C:\excel\à voir.xls"
 With CreateObject("Scripting.FileSystemObject")
  MsgBox .GetFile(Fichier).Size / 1024 & " Ko."
 End With
 end sub

Auteur :

Mots clefs associés à cette page : , , , , ,