I have form and code below, how can I modify the code automatically remove blank lines that I don't use when emaling,
code:
code:
VBA Code:
Sub Send_Range()
' Select the range of cells on the active worksheet.
ActiveSheet.Range("A1:D31").Select
' Show the envelope on the ActiveWorkbook.
ActiveWorkbook.EnvelopeVisible = True
' Set the optional introduction field thats adds
' some header text to the email body. It also sets
' the To and Subject lines. Finally the message
' is sent.
With ActiveSheet.MailEnvelope
.Introduction = ActiveSheet.Range("APPLY") '"Please apply the payment to our account or invoice(s) listed below."
.Item.To = ActiveSheet.Range("B4")
.Item.CC = ActiveSheet.Range("B5") & ";" & "navigata.ap@distributel.ca"
.Item.Subject = ActiveSheet.Range("EFT") '"Wire Remittance $"
.Item.body = ActiveSheet.Range("EFT")
.Item.Display
End With
End Sub