M
Marvin
I am getting a type definition error on the first two DIM statements
Dim OutApp As Outlook.Application
Dim OutMail As Outlook.MailItem
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(olMailItem)
With OutMail
..To = StudenteMail
..CC = ""
..BCC = ""
..Subject = "Class Progress Audio Report for " & Date
Dim strbody As String
strbody = "Outstanding job today. Please keep up the great work " &
StudentName & vbNewLine & vbNewLine & _
"Kind regards" & vbNewLine & _
"Me"
..Attachments.Add ("C:\Cantillation Sounds\InstructorNotes.wav")
..Display
End With
Set OutMail = Nothing
Set OutApp = Nothing
Dim OutApp As Outlook.Application
Dim OutMail As Outlook.MailItem
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(olMailItem)
With OutMail
..To = StudenteMail
..CC = ""
..BCC = ""
..Subject = "Class Progress Audio Report for " & Date
Dim strbody As String
strbody = "Outstanding job today. Please keep up the great work " &
StudentName & vbNewLine & vbNewLine & _
"Kind regards" & vbNewLine & _
"Me"
..Attachments.Add ("C:\Cantillation Sounds\InstructorNotes.wav")
..Display
End With
Set OutMail = Nothing
Set OutApp = Nothing