Ok, I have a procedure for the workbook_close event…it automatically opens an outlook message with the workbook attached. my problem is that my blank template gets sent, not the completed workbook. Where do I /how do I write the save procedure so that my completed file gets sent, and not my blank template? attached below is the code i have:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject(“Outlook.Application”)
Set OutMail = OutApp.CreateItem(0)
With OutMail
.To = “hazlettjm@gcemnf-wiraq.usmc.mil”
.CC = “”
.BCC = “”
.Subject = “Morning Report”
.Body = “”
.Attachments.Add ActiveWorkbook.FullName
.Display
End With
Set OutMail = Nothing
Set OutApp = Nothing
End Sub