Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I try to get the newest .xls file in a directory. Anyone sees why me method
brings up an error and doesnt find the files ? There are files in the ginven directory. Public ZMappe As String Sub Auto_Open() Dim Dat As Date Dim DatVgl As Date Dim Mappe As String Const s = _ "F:\Siemens" Mappe = Dir(s & "\*.xls") Dat = FileDateTime(s & "\" & Mappe) Do Until Mappe = "" DatVgl = FileDateTime(s & "\" & Mappe) If DatVgl Dat Then Dat = DatVgl ZMappe = s & "\" & Mappe End If Mappe = Dir() Loop Workbooks.Open Filename:=ZMappe End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
reading from another file and pasting to current file, "combobox" | New Users to Excel | |||
Reading a text file ? | Excel Worksheet Functions | |||
Reading a text file | Excel Discussion (Misc queries) | |||
Reading from ini file | Excel Programming | |||
Reading from file | Excel Programming |