Hi,
I have been trying to get the right combinations to pass the user selected files from a file open dialog box to a text box in a user form. I think I have the right dialog to put each file on a separate line, but running the routine either doesn't pass the variable or only passes 1 name.
For i = LBound(fileop) To UBound(fileop) 'identifies array min-max
'displays file name(s) in a text box in user form
frm_export_files!Text_sel_file.Text = _
fileop(i) & vbCrLf
What am I missing? Any help would be appreciated.
Is there a way to just pass the file name to the text box without the path statement?
I have been trying to get the right combinations to pass the user selected files from a file open dialog box to a text box in a user form. I think I have the right dialog to put each file on a separate line, but running the routine either doesn't pass the variable or only passes 1 name.
For i = LBound(fileop) To UBound(fileop) 'identifies array min-max
'displays file name(s) in a text box in user form
frm_export_files!Text_sel_file.Text = _
fileop(i) & vbCrLf
What am I missing? Any help would be appreciated.
Is there a way to just pass the file name to the text box without the path statement?