Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I changed "path" to sPath and used "C:\WINDOWS\Temp" as the path and it picked up every file in the folder. -- Jim Cone Portland, Oregon USA http://www.realezsites.com/bus/primitivesoftware (Excel Add-ins / Excel Programming) "Matt S" wrote in message I posted this earlier on an old thread, but I guess it doesn't bump the old thread for people to see. I hope I'm not breaking any rules or whatever, so please ignore this post if I am. Thanks, Matt -snip- "If I step through the code, it just goes right over the While loop," -snip- Sub ProcessAllFiles() Dim sFile$ Const path = "C:\Temp\Temp1\" sFile = Dir(path & "*.*") Do While sFile < "" Workbooks.Open (path & sFile) HELO_Macro ActiveWorkbook.Close savechanges:=True sFile = Dir Loop End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Running Macro on many files | Excel Programming | |||
Files won't open after running a macro | Excel Programming | |||
Running a macro on mulitple files | Excel Programming | |||
opening multiple files using VB and running a mcaro in excel | Excel Programming | |||
Import multiple files macro can't find files | Excel Programming |