Hi Guys J,
Could you please look at the below and help me?
When running it I am getting the above error message.
In advance, Thanks a million.
GizmoL.
' email Macro
Set oOutlook = CreateObject("Outlook.Application")Set oNameSpace = oOutlook.GetNameSpace("MAPI")oNameSpace.Logon , , True
ans = MsgBox("Are you sureyou wish to send this email?", vbYesNo)
If (ans = vbYes) Then
Set MItem =oOutlook.CreateItem(0)
With MItem
.To = Range("C4").Value
.Subject =Range("C7").Value
.Body =Range("C6").Value
If (.Range("B8").Value<> "") Then
.Attachments.AddRange("B8").Value
If (.Range("C8").Value<> "") Then
.Attachments.AddRange("C8").Value
If (.Range("D8").Value<> "") Then
.Attachments.AddRange("D8").Value
.Display
End With
End Sub
Could you please look at the below and help me?
When running it I am getting the above error message.
In advance, Thanks a million.
GizmoL.
' email Macro
Set oOutlook = CreateObject("Outlook.Application")Set oNameSpace = oOutlook.GetNameSpace("MAPI")oNameSpace.Logon , , True
ans = MsgBox("Are you sureyou wish to send this email?", vbYesNo)
If (ans = vbYes) Then
Set MItem =oOutlook.CreateItem(0)
With MItem
.To = Range("C4").Value
.Subject =Range("C7").Value
.Body =Range("C6").Value
If (.Range("B8").Value<> "") Then
.Attachments.AddRange("B8").Value
If (.Range("C8").Value<> "") Then
.Attachments.AddRange("C8").Value
If (.Range("D8").Value<> "") Then
.Attachments.AddRange("D8").Value
.Display
End With
End Sub