I am trying to create a dialog box that will select a path to a folder which i will then use to open a series of excel files.
I have the following code, but unable to return the path from the function, can anyone help me please?
Thanks
Mo
I have the following code, but unable to return the path from the function, can anyone help me please?
Code:
Public Function cmdSelectInput() As String
Dim strFolderPath As String
With Application.FileDialog(msoFileDialogFolderPicker)
.Title = "Select Boxplot Location Directory"
.ButtonName = "Open"
.Show
End With
End Function
Thanks
Mo