【发布时间】:2013-12-21 07:18:50
【问题描述】:
好的,所以我在访问表单上的按钮上有以下代码。
Private Sub Request_FTP_Click()
Dim olApp As Object
Dim objMail As Object
On Error Resume Next 'Keep going if there is an error
Set olApp = GetObject(, "Outlook.Application") 'See if Outlook is open
If Err Then 'Outlook is not open
Set olApp = CreateObject("Outlook.Application") 'Create a new instance
End If
Set objMail = olApp.CreateItem(olMailItem)
With objMail
.display
End With
signature = objMail.Body
With objMail
.To = "kristian@hebsdigital.com"
.Cc = ""
.Subject = "Please create FTP for " + Property_Name.Value
.Body = "Hi Ilya, " & vbNewLine & vbNewLine & "Could you please create an FTP for " & Property_Name & vbNewLine & vbNewLine & "Thank you," & signature
.send
End With
End Sub
问题是我希望签名使用 Outlook 格式。 (颜色、字体等)现在加载如下:
Name
Last Name
HYPERLINK "http://www.hebsdigital.com/"Web • HYPERLINK "http://hebsdigital.com/blog/"Blog
有人有解决办法吗?
【问题讨论】:
标签: email ms-access outlook vba