Guest User

Untitled

a guest
Jul 11th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. .Subject = Title
  2. .to = Range("B2").Value ' <-- Put email of the recipient here"
  3. .CC = "" ' <-- Put email of 'copy to' recipient here
  4. .Body = "Hi," & vbLf & vbLf _
  5. & "Yr 7 701 EOT test attached in PDF format." & vbLf & vbLf _
  6. & "Regards," & vbLf _
  7. & "KDS ICT Dept" & vbLf & vbLf
  8. .Attachments.Add PdfFile
  9.  
  10. Application.Visible = True
  11. .Display
  12.  
  13. For Each cell In Range("A2:A250")
  14. If cell = Range("Results!B2").Value Then
  15. cell.Offset(0, 4).Activate
  16. ActiveCell.Value = Range("Results!B27").Value
  17. End If
  18. Next
Add Comment
Please, Sign In to add comment