{quote}{login=Hugo}{date=03.09.2010 11:28}{thema=}{post}Ещё можно на FSO сделать, с проверкой расширения и даты
{/post}{/quote}
Ух, здорово. Проверил. Супер. Благодарю.
{/post}{/quote}
Ух, здорово. Проверил. Супер. Благодарю.
03.09.2010 11:12:47
{quote}{login=Казанский}{date=03.09.2010 11:02}{thema=AAAAAAAmidi}{post}Оказывается, в справке 2007 примера нет :( <BR>Смотрите тут:
Уже залез. Пример подправил под себя. ===================================== ww = ActiveWorkbook.Path ' ww1 = ww & "\" MyPath = ww1 myname = Dir(MyPath, vbDirectory) ' Retrieve the first entry. Do While myname <> "" ' Start the loop. ' Ignore the current directory and the encompassing directory. If myname <> "." And myname <> ".." Then ' Use bitwise comparison to make sure MyName is a directory. If (GetAttr(MyPath & myname) And vbDirectory) = vbDirectory Then Debug.Print myname ' Display entry only if it End If ' it represents a directory. End If myname = Dir ' Get next entry. zz = zz + 1 Loop MsgBox zz ======================================= Считает, но с одним ньюансом. Выдает количество файлов на 2 больше, чем есть в папке. Скрытых файлов вроде нет. Ищу причину. Ссылочку сейчас посмотрю. спасибо. |
|
|