Hello there!
I currently have a this code that opens specific excel files in a folder path. However, I want to take this code one step further, and open specific files in the folder, and sub folders.
Sub vba_open_()
Dim wb As Workbook
Dim strFolder As String
Dim strFile As String
strFolder = "C:\Users\xxxxxx\Desktop\codel\"
strFile = Dir(strFolder & Range("Y47"))
Do While strFile <> ""
Set wb = Workbooks.Open(strFolder & strFile)
strFile = Dir
Loop
End Sub
Appreciate your help! - Thanks in advance..
I currently have a this code that opens specific excel files in a folder path. However, I want to take this code one step further, and open specific files in the folder, and sub folders.
Sub vba_open_()
Dim wb As Workbook
Dim strFolder As String
Dim strFile As String
strFolder = "C:\Users\xxxxxx\Desktop\codel\"
strFile = Dir(strFolder & Range("Y47"))
Do While strFile <> ""
Set wb = Workbooks.Open(strFolder & strFile)
strFile = Dir
Loop
End Sub
Appreciate your help! - Thanks in advance..