Hi all new to the forum although I have used the site many times over the years. I am looking for a little help to expand my Macro script to add more functionality.
Currently I have a custom button that when pressed creates an email as follows:
Sub EMAIL_FORMAT()
Set myFolder = Session.GetDefaultFolder(olFolderInbox)
Set myItem = myFolder.Items.Add("IPM.Note.mail")
myItem.Display
With myItem
.CC = "example@email.co.uk"
.Subject = Format(Now, "yyyy-mm-dd") & " 1234 ABC"
.Display
End With
End Sub
What I am trying to do is a second button that will add the following info to a highlighted "blue" email that I would like to forward. Unfortunately its a little to complex for me. I have read numerous examples of forwarding code but cannot seem to solve. Any help greatly appreciated.
.To = "example@email.co.uk"
.Subject = Format(Now, "yyyy-mm-dd") & " 1234 ABC" & Keep the existing email header text
Regards,
gaz
Currently I have a custom button that when pressed creates an email as follows:
Sub EMAIL_FORMAT()
Set myFolder = Session.GetDefaultFolder(olFolderInbox)
Set myItem = myFolder.Items.Add("IPM.Note.mail")
myItem.Display
With myItem
.CC = "example@email.co.uk"
.Subject = Format(Now, "yyyy-mm-dd") & " 1234 ABC"
.Display
End With
End Sub
What I am trying to do is a second button that will add the following info to a highlighted "blue" email that I would like to forward. Unfortunately its a little to complex for me. I have read numerous examples of forwarding code but cannot seem to solve. Any help greatly appreciated.
.To = "example@email.co.uk"
.Subject = Format(Now, "yyyy-mm-dd") & " 1234 ABC" & Keep the existing email header text
Regards,
gaz