christinap
New Member
- Joined
- Feb 1, 2018
- Messages
- 3
Hello, I am seeking help with code to pdf a certain tab on my workbook and then send an email with that pdf attached to whatever email address is in cell K1. I have gotten so far as creating a PDF and having it saved to a folder, but can not figure out the email attachment bit. Below is the current code I have to PDF and save the tab.
Sub Button3_Click()
Sheets(2).Select
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=ActiveWorkbook.Path & "" & Range("B1") & Space(1) & ActiveSheet.Name, _
Quality:=xlQualityStandard, IncludeDocProperties:=True, _
IgnorePrintAreas:=False, OpenAfterPublish:=True
End Sub
Thanks much!
Sub Button3_Click()
Sheets(2).Select
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=ActiveWorkbook.Path & "" & Range("B1") & Space(1) & ActiveSheet.Name, _
Quality:=xlQualityStandard, IncludeDocProperties:=True, _
IgnorePrintAreas:=False, OpenAfterPublish:=True
End Sub
Thanks much!