Sub GuiMail_HLMT()
Dim i As Integer
Dim xOutApp As Object 'Outlook.Application
Dim xMailOut As Object 'Outlook.MailItem
Dim oFSO As Object
Dim oFolder As Object
Dim oFile As Object
Set oFSO = CreateObject("Scripting.FileSystemObject")
Application.ScreenUpdating = False
Set xOutApp = CreateObject("Outlook.Application")
For i = 1 To 11
Set xMailOut = xOutApp.CreateItem(olMailItem)
With xMailOut
.To = Cells(i + 1, 2)
.CC = Cells(i + 1, 3)
.Subject = Cells(i + 1, 5)
.HTMLBody = Cells(i + 1, 6) & "<br>" & Cells(i + 1, 7) & "<br>" & Cells(i + 1, 8)
Set oFolder = oFSO.GetFolder(Cells(i + 1, 4) & "\")
For Each oFile In oFolder.Files
.Attachments.Add Cells(i + 1, 4) & "\" & oFile.Name
Next
.Display
End With
Next
Set xMailOut = Nothing
Set xOutApp = Nothing
Set oFile = Nothing
Set oFolder = Nothing
Set oFSO = Nothing
Application.ScreenUpdating = True
End Sub