No worries at all, glad to help.
Yes you can do that,
If Target.Column = 7 Then
Dim OutApp As Object
Dim OutMail As Object
Dim strbody As String
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
If Cells(Target.Row, Target.Column) = "Accept" Then
strbody = "Hi there" & vbNewLine & vbNewLine & _
Target.Offset(0, 1).Value & vbNewLine
strSubject = "Accepted!"
End If
Or I'd do it like this if I'm honest to keep it more "readable";
If Target.Column = 7 Then
ARRow = Target.Row
Dim OutApp As Object
Dim OutMail As Object
Dim strbody As String
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
If Cells(Target.Row, Target.Column) = "Accept" Then
strbody = "Hi there" & vbNewLine & vbNewLine & _
Cells(ARRow, "H").Value & vbNewLine
strSubject = "Accepted!"
End If
The choice is yours, whatever you feel comfortable with like anything else
Bookmarks