bkjohn2016
New Member
- Joined
- Sep 9, 2016
- Messages
- 38
I'm trying to loop through files in a folder and I'd like to allow the user to select the folder that they would like to loop through. What am I doing wrong here:
Code:
Sub GetSummaryData()
Dim wb As Workbook, ws As Worksheet
Set fso = CreateObject("Scripting.FileSystemObject")
SelectFolder = Application.FileDialog(msoFileDialogFolderPicker).Show
Set fldr = fso.GetFolder("SelectFolder")