April 2006
Beginner
1114 pages
98h 16m
English
hyperlink.EmailSubject [= setting]
Gets or sets the subject line of a mailto: link. This property overrides the subject setting included in the URL. For example, the following code creates an email link with a subject, but then changes the subject line:
Sub CreateMailLink( )
Dim ws As Worksheet, hyp As Hyperlink
Set ws = ActiveSheet
' Create an email link.
Set hyp = ws.Hyperlinks.Add([a3], _
"mailto:someone@microsoft.com&subject=Help on Excel", _
, "Click to send mail.", "Contact Microsoft")
' Change the subject...
hyp.EmailSubject = "Different subject"
End SubRead now
Unlock full access