'SAVES IN GIVENDIRECTORY
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
CreateObject("WScript.Shell").SpecialFolders("Desktop") & "\Program\Reports\" & Range("A10") & "_" & Range("AH2") & "_" & Format(Date, "m-d-yy") & "_MR_" & Range("AV1"), Quality _
:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _
OpenAfterPublish:=False
Set rng = ActiveSheet.Range("BK85", "cn105") 'You can also use a sheet name 'Set rng = Sheets("YourSheet").UsedRange
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
On Error Resume Next
With OutMail
.Attachment.Add GetObject("WScript.Shell").SpecialFolders("Desktop") & "\Program\Reports\" & Range("A10") & "_" & Range("AH2") & "_" & Format(Date, "m-d-yy") & "_MR_" & Range("AV1") & ".pdf\"
.Save
.To = strto & Range("m2") 'Name a range of cells as "Email"
.CC = ""
.BCC = ""
.Subject = ActiveSheet.Range("A10") & "_" & Range("AH2") & "_" & Format(Date, "m-d-yy") & "_MR_" & Range("AV1")
.HTMLBody = RangetoHTML1(rng) & "Thank you, and have a blessed day!" & "
" & Range("o1") & "
" & Range("m5") & "
"
.send 'or use .Display
End With
On Error GoTo 0