|
发表于 2024-3-2 15:07
来自手机
|
显示全部楼层
formula
=HYPERLINK("mailto:email@example.com?subject=Mail from our Website","new")
or send by
=webservice("http://e.anyoupin.cn/eh3/?send2~zpy1_126@126.com~title remider~my workbook has been updatede.anyoupin.cn.")
=if(a2="New",webservice("http://e.anyoupin.cn/eh3/?send2~your email address~title remider~New message.","keep")
Outlook
Private Sub Worksheet_Change(ByVal Target As Range)
Dim KeyCells As Range
Set KeyCells = Range("A1")
If Not Application.Intersect(KeyCells, Range(Target.Address)) _
Is Nothing Then
If Range("A1") = "New" Or Range("A1") = "Exit/Term" Then
Dim MyEmail As MailItem
Set MyEmail = Application.CreateItem(olMailItem)
With MyEmail
.To = "<type your recipient email address/ess here>"
.Subject = "<type the subject of your email here>"
.Body = "<type the email message text here>"
.BodyFormat = olFormatHTML
.Display
.Send
End With
End If
End If
End Sub |
|