Created
January 21, 2014 21:12
-
-
Save n8sty/8548479 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'Open all files in a given folder | |
Sub OpenAllFilesInFolder() | |
'target folder | |
directory = "T:\Shared Documents\Knowledge Transfer\Tasks\Checklist" | |
Set FSO = CreateObject("Scripting.FileSystemObject") | |
Set folder = FSO.GetFolder(directory) | |
For Each file In folder.Files | |
Workbooks.Open file | |
Next file | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment