Below I have the VBA to automatically open an email after update on a field. Instead of attaching a specific attachment (in this case "C:\Folder1\Folder2\File.xlsx") I would like to automatically open the insert file browser in Outlook for that specific email so that the user can select one or multiple files for attachment from the folder it opens up to (in this case "C:\Folder1\Folder2\") and simply click insert.
Any ideas?
Private Sub Completion_Dt_AfterUpdate()
Dim strEmail As String
Dim strMsg As String
Dim oLook As Object
Dim oMail As Object
Set oLook = CreateObject("Outlook.Application")
Set oMail = oLook.createitem(0)
With oMail
.to = "Maria Maria"
.cc = "Some Person"
.body = "Please see attachment."
.Subject = "File attached."
.Attachments.Add "C:\Folder1\Folder2\File.xlsx"
'instead of attaching a specific file I would like to automatically open the browser for a file attachment so the user can select one or multiple files on their own.
.display
End With
Set oMail = Nothing
Set oLook = Nothing
End Sub
Any ideas?
Private Sub Completion_Dt_AfterUpdate()
Dim strEmail As String
Dim strMsg As String
Dim oLook As Object
Dim oMail As Object
Set oLook = CreateObject("Outlook.Application")
Set oMail = oLook.createitem(0)
With oMail
.to = "Maria Maria"
.cc = "Some Person"
.body = "Please see attachment."
.Subject = "File attached."
.Attachments.Add "C:\Folder1\Folder2\File.xlsx"
'instead of attaching a specific file I would like to automatically open the browser for a file attachment so the user can select one or multiple files on their own.
.display
End With
Set oMail = Nothing
Set oLook = Nothing
End Sub