Using a cell value as the subject line

G

Guest

How do I use the cell value from cell a8 as the subject line in the following
code?
More specifically the words "QA Snapshot" and "the value of cell (a8)"

Private Sub Send1_Click()

Dim strdate As String

ActiveSheet.Copy
strdate = Format(Date, "mm-dd-yy")
ActiveSheet.Name = "QA Snapshot"
ActiveWorkbook.SaveAs "QA Snapshot" & " " & strdate & ".xls"
ActiveWorkbook.SendMail "", _
"QA Snapshot"
ActiveWorkbook.ChangeFileAccess xlReadOnly
Kill ActiveWorkbook.FullName
ActiveWorkbook.Close False
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top