0 Agios
Well-known Member
- Joined
- Feb 22, 2004
- Messages
- 570
- Office Version
- 365
I have this code that works, but does not produce the email signature in outlook. Any help would be apricated.
Private Sub CommandButton42_Click()
' ActiveSheet.Protect Password:="786", DrawingObjects:=False, Contents:=False, Scenarios:=False _
, AllowSorting:=True, AllowFiltering:=True, AllowUsingPivotTables:=True
Dim Email_Subject, Email_Send_From, Email_Send_To, _
Email_Cc, Email_Bcc, Email_Body As String
Dim Mail_Object, Mail_Single As Variant
Email_Subject = TextBox1.Value & " " & " Just following up on this bid. "
Email_Send_To = TextBox13.Text
Email_Cc = ""
'Email_Bcc = ""
On Error GoTo debugs
Set Mail_Object = CreateObject("Outlook.Application")
Set Mail_Single = Mail_Object.CreateItem(0)
With Mail_Single
.Subject = Email_Subject
.To = Email_Send_To
.CC = Email_Cc
.BCC = Email_Bcc
.HTMLBody = " Do you have any updates on this project? We would love to do this job with you. Please let me know if you need anything on it, tweak the numbers to make this work etc. Thank you."
.Display
End With
debugs:
If Err.Description <> "" Then MsgBox Err.Description
'TextBox12.Value = "Chris send this job. " & Now()
'ActiveCell.Offset(0, 1).Cells.Interior.Color = RGB(249, 249, 165)
Unload Me
End Sub
Private Sub CommandButton42_Click()
' ActiveSheet.Protect Password:="786", DrawingObjects:=False, Contents:=False, Scenarios:=False _
, AllowSorting:=True, AllowFiltering:=True, AllowUsingPivotTables:=True
Dim Email_Subject, Email_Send_From, Email_Send_To, _
Email_Cc, Email_Bcc, Email_Body As String
Dim Mail_Object, Mail_Single As Variant
Email_Subject = TextBox1.Value & " " & " Just following up on this bid. "
Email_Send_To = TextBox13.Text
Email_Cc = ""
'Email_Bcc = ""
On Error GoTo debugs
Set Mail_Object = CreateObject("Outlook.Application")
Set Mail_Single = Mail_Object.CreateItem(0)
With Mail_Single
.Subject = Email_Subject
.To = Email_Send_To
.CC = Email_Cc
.BCC = Email_Bcc
.HTMLBody = " Do you have any updates on this project? We would love to do this job with you. Please let me know if you need anything on it, tweak the numbers to make this work etc. Thank you."
.Display
End With
debugs:
If Err.Description <> "" Then MsgBox Err.Description
'TextBox12.Value = "Chris send this job. " & Now()
'ActiveCell.Offset(0, 1).Cells.Interior.Color = RGB(249, 249, 165)
Unload Me
End Sub