Sometimes it works fine, but about half the time I get this error message:
On Error Resume Next Set oOutlookApp = GetObject(, "Outlook.Application") If Err <> 0 Then Set oOutlookApp = CreateObject("Outlook.Application") End If Set oItem = oOutlookApp.CreateItem(olMailItem) With oItem .To = tostring .Subject = "Project Field Schedule: " & skeddeets.Cells(3, 2) & " " & skeddeets.Cells(3, 4) .Attachments.Add savedname .Body = "Attached please find the latest Field Schedule for the " & skeddeets.Cells(3, 2) & " " _ & skeddeets.Cells(3, 4) & " project." & vbCrLf & vbCrLf & vbCrLf .Display '.Send End With
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.