send object with gmail

bbwolff

Registered User.
Local time
Today, 14:08
Joined
Oct 1, 2013
Messages
116
i'm sending mail using local server, so no outlook.
i know how to attach a file with a fixed name.
i'd like to add the ability to attach whatever file from the comp - pictures,pdf,office files, where you'd chose from comp through fileexplorer whatever you want.
Is that possible?
 
Code:
Dim f As Object
Set f = Application.FileDialog(3)
f.AllowMultiSelect = False
    If f.Show Then
    Me.txtAttach = f.SelectedItems(1)
    End If
End If
 

Users who are viewing this thread

Back
Top Bottom