Try this:
Sub Email_Reps()
Dim OutLookApp As Object
Dim OutLookMailItem As Object
Dim lngR As Long
Dim MailDest As String
Dim Attach As Object
Dim subj As String
Dim shD As Worksheet
Dim strPath As String
Dim strR As String
Dim oFolder As Variant
Dim oShell As Variant
Set shD = ThisWorkbook.Worksheets("DataSheet")
'Chose a folder - Show the dialog
Set oShell = CreateObject("Shell.Application")
Set oFolder = oShell.BrowseForFolder(0, "Select Folder", 0, "")
If Not oFolder Is Nothing Then
strPath = oFolder.Self.Path
Else
MsgBox "You cancelled."
Exit Sub
End If
Set OutLookApp = CreateObject("Outlook.application")
For lngR = 2 To shD.Cells(shD.Rows.Count, "P").End(xlUp).Row
strR = Dir(strPath & "\" & shD.Cells(lngR, "P").Value & ".xlsx")
If strR <> "" Then
Set OutLookMailItem = OutLookApp.CreateItem(0)
Set Attach = OutLookMailItem.Attachments
With OutLookMailItem
.To = shD.Cells(lngR, "Q").Value
.cc = shD.Cells(lngR, "R").Value
.Subject = "Blah"
.Body = "BlahBlah"
Attach.Add strPath & "\" & strR
.Send
End With
End If
Next lngR
End Sub
Bookmarks