I get sent a folder containing zip files. I extract the zips to another folder. This then gives me 65 sub folders(directo ries), each with an excel and a text file. I wish to open all the excel files with one action in VB. If possible put them all on a single sheet in one workbook. They are all formatted the same and do not contain a lot of data so size and formatting will not be a problem.
I have
to extract from a single folder. I need to get it out of sub folders though.
Can anyone please help?
I have
Code:
Sub Open_My_Files() Dim MyFile As String MyPath = "C:\Temp\Unzipped" MyFile = Dir(MyPath) Do While MyFile <> "" If MyFile Like "*.xls" Then Workbooks.Open MyPath & MyFile End If MyFile = Dir Loop End Sub
Can anyone please help?
Comment