Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 96
Default Using a cell value as the subject line

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Using a cell value as the subject line

ActiveWorkbook.SendMail "", _
"QA Snapshot" & Range("A8")

--

Vasant


"Qaspec" wrote in message
...
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
email hyperlink - cell value in subject line boustrophedon Excel Discussion (Misc queries) 19 April 21st 23 06:12 PM
hyperlink with cell info in subject line [email protected] Excel Discussion (Misc queries) 0 January 2nd 08 05:26 PM
Export data in cell as the subject line in an email BCassedy Excel Worksheet Functions 0 July 26th 07 10:10 PM
How do I include cell data in subject line of email address/hyperl gvinnola Excel Worksheet Functions 1 November 18th 04 02:36 AM
Subject line in E-mail Ola Sigurdh Excel Programming 2 January 22nd 04 06:49 PM


All times are GMT +1. The time now is 03:19 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"