A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Is Outlook running when you use the macro?
Try using
On Error Resume Next
Set OutApp = GetObject(, "Outlook.Application")
If Err <> 0 Then
Set OutApp = CreateObject("Outlook.Application")
bStarted = True
End If
On Error GoTo 0
and then at the end
If bStarted Then
OutApp.Quit
End If
Set OutMail = Nothing
Set OutApp = Nothing