Hi and Help,
I'm looking to create a macro that has 3 possible outcomes actions that will be in Column I - Updated, Fixed or More Information.
Update will send to a set email (see the information below - i could only code 1 outcomes)
Fixed and More Informatin will send to the same email address.
How do I get it all in code? As stated, my code below is what will go for Update - help, I'm not sure how to create the condition for the other two and then add its email info.
Any help would be appreciated.
Shonda
Private Sub Worksheet_Change(ByVal Target As Range)
On Error Resume Next
If Target.Cells.Count > 1 Then Exit Sub
Set xRg = Intersect(Range("k:k"), Target)
If xRg Is Nothing Then Exit Sub
If Target.Value = "Update Request" Then
Call Mail_small_Text_Outlook
End If
End Sub
Sub Mail_small_Text_Outlook()
Dim xOutApp As Object
Dim xOutMail As Object
Dim xMailBody As String
Set xOutApp = CreateObject("Outlook.Application")
Set xOutMail = xOutApp.CreateItem(0)
xMailBody = "All," & vbNewLine & vbNewLine & _
"Updates have been entered into the maintenance log:" & vbNewLine & _
Range("b3") & vbNewLine & _
Range("c3") & vbNewLine & _
Range("d3")
With xOutMail
.To = "xxxxxx@xxxxx.com"
.CC = ""
.BCC = ""
.Subject = "Maintenance Updates"
.Body = xMailBody
.Display 'or use .Send
End With
On Error GoTo 0
Set xOutMail = Nothing
Set xOutApp = Nothing
End Sub