I have this code works fine, but when sending invoices will be easier to drag and drop the files being attached into a textbox because i use two monitors, also if just show the files names instead of folder in the textbox.
is it possible?
here it's the code:
thanks
is it possible?
here it's the code:
Code:
Private Sub btnBrowse_Click()
Dim fileDiag As FileDialog
Dim strFile As String
Dim strFolder As String
Dim file As Variant
Set fileDiag = FileDialog(msoFileDialogFilePicker)
fileDiag.AllowMultiSelect = True
If fileDiag.Show Then
For Each file In fileDiag.SelectedItems
Me.txtAttachment = file
Next
End If
End Sub
thanks