Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Am using good code to search directory/folders for various filenames, size, last date modified... See code Directory = MyPath 'custom path (MyPath = reference to specific cell's text value) With Application.FileSearch 'look for Excel Files .NewSearch .LookIn = Directory .FileName = ".xls" .SearchSubFolders = False .Execute .Count For I = 1 To .FoundFiles.Count Cells(r, 1) = .FoundFiles(I) Cells(r, 2) = FileLen(.FoundFiles(I)) Cells(r, 3) = FileDateTime(.FoundFiles(I)) r = r + 1 -- My problem is that .Lookin references a folder on my harddrive instead of a server location specified by varialble named "MyPath". Can't seem to redirect Lookin to MyPath. Using MyPath instead of, for example: "P:\Finance\Data\..." Any suggestions? Thanks, Bryan Toma |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I have a date 51231 (2005,dec,31) -I want to change to 2005/12/31 | Excel Worksheet Functions | |||
Is the equation: =COUNTIF B:B, <9/31/2005 AND 9/1/2005 possible? | Excel Worksheet Functions | |||
Convert alphanumerical(eg. 12.11.2005) to date as 12-Nov-2005 in e | Excel Discussion (Misc queries) | |||
error after runing MS update last weel 10/13/2005 | Excel Discussion (Misc queries) | |||
chnage date from tuesday 4 January 2005 10:39.26 to 04/01/2005 | Excel Worksheet Functions |