VBA/Excel/Access/Word/File Path/FileLen — различия между версиями

Материал из VB Эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Версия 19:33, 26 мая 2010

Determining a file size: displays the size, in bytes, of the Excel executable file. It finds this value by using the FileLen function.

   <source lang="vb">

Sub GetFileSize()

   Dim TheFile As String
   TheFile = "c:\MSOFFICE\EXCEL\EXCEL.EXE"
   MsgBox FileLen(TheFile)

End Sub

</source>