Hi all
Learning VBA slowly on my own and I have managed to write a script for me to send multiple emails weekly, however there are 2 things I would like to do….
when referencing a cell in the email body which is a negative value, I would like that text to be red, and a positive value the text to be green.
attach my signature from Outlook to the bottom of each email. Any help with this would be fab!
Current script
Dim Edress As String, subj As String
Dim OutlookOBJ As Object, mItem As Object
Set OutlookOBJ = CreateObject(“Outlook.Application”)
Set mItem = OutlookOBJ.CreateItem(olMailItem)
With mItem
.To
.Cc
.subject
.attachment.add
.Body “text writing here” & sheet(“one”).Range(“A15”).Value & “more text here”
.Send
Learning VBA slowly on my own and I have managed to write a script for me to send multiple emails weekly, however there are 2 things I would like to do….
when referencing a cell in the email body which is a negative value, I would like that text to be red, and a positive value the text to be green.
attach my signature from Outlook to the bottom of each email. Any help with this would be fab!
Current script
Dim Edress As String, subj As String
Dim OutlookOBJ As Object, mItem As Object
Set OutlookOBJ = CreateObject(“Outlook.Application”)
Set mItem = OutlookOBJ.CreateItem(olMailItem)
With mItem
.To
.Cc
.subject
.attachment.add
.Body “text writing here” & sheet(“one”).Range(“A15”).Value & “more text here”
.Send