Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub ProcessFiles()Dim sFolder As String
Dim FSO As Object Dim fldr As Object Dim Folder As Object Dim file As Object Dim Files As Object Dim oWb As Workbook Set FSO = CreateObject("Scripting.FileSystemObject") sFolder = "C:\myTest" If sFolder < "" Then Set Folder = FSO.GetFolder(sFolder) Set Files = Folder.Files For Each file In Files If file.Type = "Microsoft Excel Worksheet" Then Set oWb = Workbooks.Open FileName:=file.Path KennysMacro End If Next file End If ' sFolder < "" End Sub -- HTH RP "KENNY" wrote in message ... Hi, I'd like to open each workbook in a folder, make a certain change, save the file, close it, and go to the next... Help?! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Workbook saved in FTP folder | Excel Discussion (Misc queries) | |||
Move Active Workbook to another Folder | Excel Discussion (Misc queries) | |||
Linked workbook data suddenly not found | Links and Linking in Excel | |||
Find text in another workbook and paste if found match - VBA | Excel Discussion (Misc queries) | |||
New Folder, Workbook, and Worksheet | Excel Programming |