NVM! 10char
NVM! 10char
Last edited by Im2bz2p345; 04-11-2011 at 06:32 PM. Reason: NVM! 10char
Come again???
Does this help ?
Public Sub demo() ' Config Here ! FullPath = "C:\test\" FileName = "*" & "Book" & "*" & "Mar" & "*" FileExt = ".xls" Call OpenFile(FullPath, FileName, FileExt) End Sub Public Sub OpenFile(FullPath, FileName, FileExt) On Error GoTo exitloop NextFile = Dir(FullPath & FileName & FileExt) Do While NextFile <> "" ' Start the loop. NextFile = Dir Workbooks.Open FileName:=NextFile Loop exitloop: End Sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks