I have a macro that is currently creates a new sheet, and imports another excel file into this new sheet.
Data from this sheet is than pulled into other areas of the w
You can use GetOpenFilename
:
.SourceDataFile = Application.GetOpenFilename("Excel workbooks (*.xls), *.xls")
Another option is the FileDialog object. It offers more flexibility.
Dim fdgOpen As FileDialog
Set fdgOpen = Application.FileDialog(msoFileDialogOpen)
fdgOpen.Title = "Please open a data file..."
fdgOpen.InitialFileName = "C:\MyDocuments\MyDir\"
'Other settings...
fdgOpen.Show
.SourceDataFile = fdgOpen.SelectedItems(1)