F.FileName
Dim f As Object Set f = Application.FileDialog(msoFileDialogFilePicker) f.AllowMultiSelect = False f.Title = "Please Select an Excel Sheet" f.Filters.Clear f.Show txt_Path.Text = f.FileNameToString()//gives me Error how can i fix it
FileDialog.SelectedItems
'Loop through each file selected and do whatever you want to do with it. For Each varFile In .SelectedItems 'varFile - this is your file name Next
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)