send object with gmail (1 Viewer)

bbwolff

Registered User.
Local time
Today, 13:29
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?
 

bbwolff

Registered User.
Local time
Today, 13:29
Joined
Oct 1, 2013
Messages
116
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

Top Bottom