I have a workbook that I use to create and save quotes. I would like to add an email macro that 1st saves the quote as the name that is created in the working macro below and then opens outlook and creates an email with the .pdf (as named below) attached.
Additionally, I woulds like to add in the body of the email a couple values such as... "Please see the attached quote for (text in cell A2)".
"The total price is (value in cell w2)".
Any help would be greatly appreciated.
THANKS!
Additionally, I woulds like to add in the body of the email a couple values such as... "Please see the attached quote for (text in cell A2)".
"The total price is (value in cell w2)".
Any help would be greatly appreciated.
THANKS!
Code:
Sub Save_Float()
If Dir("C:\Quotes Folder\", vbDirectory) = vbNullString Then MkDir "C:\Quotes Folder"
If Dir("C:\Quotes Folder\" & [Input!F12] & "\", vbDirectory) = vbNullString Then MkDir "C:\Quotes Folder\" & [Input!F12] & "\"
Call Flash_Float_Quote
ThisFile = "C:\Quotes Folder\" & [Input!F12] & "\" & Range("Magic!P17").Value & Range("Magic!P10").Value & Format(Range("Input!R4").Value, "mm-dd-yyyy")
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, FileName:=ThisFile
End Sub
Last edited by a moderator: