Actually i adjusted it myself, i need some more help if you can though...
Right now the code is working fine however
1) I would like the File name of the saved PDF to be saved in a shared network for a company i work for. (J:\Schedules\PCC Daily Schedule\2019 February) I also would like the file name to be dated as per the following day.
2) My code right now sends with
today's date but i would like to know how to edit the format operation to make it always say
the next days date in the file name, and in subject, and in body.
3) is there a way to include my signature with the email, since it includes all my contact info.
4) just to clarify....
i want to know how to edit my code for it to include saving the file in a specific location in a shared network. and i want it to send the email with the following days date as the file name, subject, and in the body of email!!!
Thanks to whoever is able to guide me
Code:
Sub Send_Email()
Dim wPath As String, wFile As String
Dim x As Date
x = Format(Now(), "MMMM dd, yyyy")
wPath = ThisWorkbook.Path
wFile = "Daily Look Ahead.pdf"
Range("a1:H47").ExportAsFixedFormat Type:=xlTypePDF, Filename:=wPath & wFile, _
Quality:=xlQualityStandard, IncludeDocProperties:=True, _
IgnorePrintAreas:=False, OpenAfterPublish:=False
Set dam = CreateObject("Outlook.Application").CreateItem(0)
'
dam.To = "ymussa@perfettocontracting.com"
dam.Subject = "Daily Schedule for " & x
dam.body = "Hello all, The Daily Look Ahead Schedule for " & x & " is attached."
dam.Attachments.Add wPath & wFile
dam.Send
MsgBox "Email sent"
End Sub